[ticket/17347] Update tests for delete_id command

PHPBB-17347
This commit is contained in:
Marc Alexander 2024-06-21 21:12:09 +02:00
parent db40145fd5
commit d875eaa405
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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()