mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 18:04:03 +00:00
Delete redundant cleanup
This commit is contained in:
parent
519c819e28
commit
d9ae27425d
1 changed files with 2 additions and 6 deletions
|
|
@ -622,18 +622,14 @@ test('database managers validate parameters that cannot be bound', function ($dr
|
|||
|
||||
// Special characters are allowed in passwords
|
||||
$tenantWithValidPassword = Tenant::make([
|
||||
'tenancy_db_name' => 'valid_database_name890' . Str::random(4),
|
||||
'tenancy_db_username' => 'valid_USERNAME' . Str::random(4),
|
||||
'tenancy_db_name' => 'valid_database_name890' . Str::random(8),
|
||||
'tenancy_db_username' => 'valid_USERNAME' . Str::random(8),
|
||||
'tenancy_db_password' => "]pa$$ ;word",
|
||||
]);
|
||||
|
||||
expect(fn () => $manager->createUser($tenantWithValidPassword->database()))
|
||||
->not()->toThrow(InvalidArgumentException::class, 'Forbidden character');
|
||||
|
||||
// Delete the created user
|
||||
expect(fn () => $manager->deleteUser($tenantWithValidPassword->database()))
|
||||
->not()->toThrow(InvalidArgumentException::class);
|
||||
|
||||
$tenantWithNullDbParameters = Tenant::make([
|
||||
'tenancy_db_name' => null,
|
||||
'tenancy_db_username' => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue