mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Fix immediately obvious deprecation notices while running command tests
This commit is contained in:
@@ -61,12 +61,12 @@ class MakeUserCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.user.ask_password_help'), $display);
|
||||
$this->assertContains($user->uuid, $display);
|
||||
$this->assertContains($user->email, $display);
|
||||
$this->assertContains($user->username, $display);
|
||||
$this->assertContains($user->name, $display);
|
||||
$this->assertContains('Yes', $display);
|
||||
$this->assertStringContainsString(trans('command/messages.user.ask_password_help'), $display);
|
||||
$this->assertStringContainsString($user->uuid, $display);
|
||||
$this->assertStringContainsString($user->email, $display);
|
||||
$this->assertStringContainsString($user->username, $display);
|
||||
$this->assertStringContainsString($user->name, $display);
|
||||
$this->assertStringContainsString('Yes', $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,7 +90,7 @@ class MakeUserCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.user.ask_password_help'), $display);
|
||||
$this->assertStringNotContainsString(trans('command/messages.user.ask_password_help'), $display);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,11 +119,11 @@ class MakeUserCommandTest extends CommandTestCase
|
||||
]);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.user.ask_password_help'), $display);
|
||||
$this->assertContains($user->uuid, $display);
|
||||
$this->assertContains($user->email, $display);
|
||||
$this->assertContains($user->username, $display);
|
||||
$this->assertContains($user->name, $display);
|
||||
$this->assertContains('No', $display);
|
||||
$this->assertStringNotContainsString(trans('command/messages.user.ask_password_help'), $display);
|
||||
$this->assertStringContainsString($user->uuid, $display);
|
||||
$this->assertStringContainsString($user->email, $display);
|
||||
$this->assertStringContainsString($user->username, $display);
|
||||
$this->assertStringContainsString($user->name, $display);
|
||||
$this->assertStringContainsString('No', $display);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user