mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:54:04 +00:00
Add assertion
This commit is contained in:
parent
c8a6fed3c6
commit
ae91c7e375
1 changed files with 5 additions and 0 deletions
|
|
@ -167,5 +167,10 @@ class TenantClassTest extends TestCase
|
||||||
$this->assertSame(2, $tenant->run(function () {
|
$this->assertSame(2, $tenant->run(function () {
|
||||||
return \DB::table('users')->count();
|
return \DB::table('users')->count();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// test that the tenant variable can be accessed
|
||||||
|
$this->assertSame($tenant->id, $tenant->run(function ($tenant) {
|
||||||
|
return $tenant->id;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue