1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:54:03 +00:00

assertion

This commit is contained in:
Abrar Ahmad 2022-08-30 11:11:56 +05:00
parent 0f077cdaf0
commit a548f53bfc

View file

@ -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
});