mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:14:04 +00:00
assertion
This commit is contained in:
parent
0f077cdaf0
commit
a548f53bfc
1 changed files with 3 additions and 2 deletions
|
|
@ -137,7 +137,8 @@ test('tenant set as a default parameter for the URLs', function () {
|
|||
|
||||
pest()->get(route('foo', ['tenant' => 'acme', 'a' => 1, 'b' => 2]));
|
||||
|
||||
expect(tenancy()->initialized)->toBeTrue();
|
||||
expect(tenant('id'))->toBe('acme');
|
||||
expect(tenancy()->initialized)->toBeTrue()
|
||||
->and(tenant('id'))->toBe('acme')
|
||||
->and(route('baz', ['a' => 1, 'b' => 2]))->toBe('http://localhost/acme/baz/1/2');
|
||||
pest()->get(route('baz', ['a' => 1, 'b' => 2]))->assertOk(); // Assert route don't need tenant parameter
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue