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) ->sellable() ->withSalesAdjustments() ->purchasable() ->withPurchaseAdjustments() ->create(); return $this; } }