From a548f53bfcaf479b5e2ebb627371086a8d5be7a4 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 30 Aug 2022 11:11:56 +0500 Subject: [PATCH] assertion --- tests/PathIdentificationTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/PathIdentificationTest.php b/tests/PathIdentificationTest.php index 9c117d0e..f211947b 100644 --- a/tests/PathIdentificationTest.php +++ b/tests/PathIdentificationTest.php @@ -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 });