1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00

Fix feature bootstrapping

This commit is contained in:
Samuel Štancl 2019-09-18 18:02:14 +02:00
parent 689a679f52
commit 9bb56c1b30
5 changed files with 19 additions and 6 deletions

View file

@ -205,6 +205,14 @@ class TenantManagerTest extends TestCase
/** @test */
public function id_cannot_be_changed()
{
// todo1
$tenant = Tenant::create(['test2.localhost']);
$this->expectException(\Stancl\Tenancy\Exceptions\TenantStorageException::class);
$tenant->id = 'bar';
$tenant2 = Tenant::create(['test3.localhost']);
$this->expectException(\Stancl\Tenancy\Exceptions\TenantStorageException::class);
$tenant2->put('id', 'foo');
}
}