mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17347] Update tests for delete_id command
PHPBB-17347
This commit is contained in:
parent
db40145fd5
commit
d875eaa405
1 changed files with 3 additions and 4 deletions
|
@ -56,7 +56,7 @@ class phpbb_console_user_delete_ids_test extends phpbb_console_user_base
|
|||
|
||||
$this->assertNull($this->get_user_id('Test'));
|
||||
$this->assertNull($this->get_user_id('Test 2'));
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_IDS_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_ID_SUCCESS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_delete_one()
|
||||
|
@ -73,7 +73,7 @@ class phpbb_console_user_delete_ids_test extends phpbb_console_user_base
|
|||
|
||||
$this->assertNull($this->get_user_id('Test'));
|
||||
$this->assertNotNull($this->get_user_id('Test 2'));
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_IDS_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_ID_SUCCESS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_delete_bot()
|
||||
|
@ -90,9 +90,8 @@ class phpbb_console_user_delete_ids_test extends phpbb_console_user_base
|
|||
'--delete-posts' => false,
|
||||
));
|
||||
|
||||
$this->assertNull($this->get_user_id('Test'));
|
||||
$this->assertNull($this->get_user_id('Test Bot'));
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_IDS_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_USER_DELETE_ID_SUCCESS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_delete_non_user()
|
||||
|
|
Loading…
Add table
Reference in a new issue