Код: Выделить всё
// https://tenancyforlaravel.com/docs/v3/testing
protected function setUp(): void {
parent::setUp();
$this->tenant = Tenant::factory()->create();
$domain = Domain::factory()->make();
$this->tenant->domains()->save($domain);
tenancy()->initialize($this->tenant);
// ...
}
public function test_route(): void {
$route = route('tenant.profile.index');
$this
->get($route)
->assertOk();
}
Код: Выделить всё
masterЕсть идеи, что я забыл?>
Подробнее здесь: https://stackoverflow.com/questions/796 ... ot-working
Мобильная версия