testUser = User::first(); $this->testCompany = $this->testUser->ownedCompanies->first(); $this->testUser->switchCompany($this->testCompany); $this->actingAs($this->testUser); Filament::setTenant($this->testCompany); } public function withOfferings(): static { Offering::factory() ->for($this->testCompany) ->withSalesAdjustments() ->withPurchaseAdjustments() ->create(); return $this; } }