From a4aea293038fcaff4ff3c1895cb8957b65f04df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 31 Aug 2022 19:48:51 +0200 Subject: [PATCH] remove irrelevant assertions --- tests/CommandsTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 9793846a..19018c9a 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -184,7 +184,6 @@ test('run command works when sub command asks questions and accepts arguments', $tenant = Tenant::create(); $id = $tenant->getTenantKey(); - // Run tenant migrations so we have users table Artisan::call('tenants:migrate'); pest()->artisan("tenants:run --tenants=$id 'user:addwithname Abrar' ") @@ -195,15 +194,11 @@ test('run command works when sub command asks questions and accepts arguments', // Assert we are in central context expect(tenancy()->initialized)->toBeFalse(); - // Assert users table does not exist in the central context - expect(Schema::hasTable('users'))->toBeFalse(); - - // Assert user created in tenant context + // Assert user was created in tenant context tenancy()->initialize($tenant); - expect(Schema::hasTable('users'))->toBeTrue(); $user = User::first(); - // Assert user is same as provided using command + // Assert user is same as provided using the command expect($user->name)->toBe('Abrar'); expect($user->email)->toBe('email@localhost'); });