mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:54:03 +00:00
Refactor tests to use pest() helper
This commit is contained in:
parent
05f2a828a1
commit
f9c9d8615f
26 changed files with 128 additions and 127 deletions
|
|
@ -56,7 +56,7 @@ test('a tenants database cannot be created when the user already exists', functi
|
|||
expect($manager->userExists($tenant->database()->getUsername()))->toBeTrue();
|
||||
expect($manager->databaseExists($tenant->database()->getName()))->toBeTrue();
|
||||
|
||||
$this->expectException(TenantDatabaseUserAlreadyExistsException::class);
|
||||
pest()->expectException(TenantDatabaseUserAlreadyExistsException::class);
|
||||
Event::fake([DatabaseCreated::class]);
|
||||
|
||||
$tenant2 = Tenant::create([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue