1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-23 10:01:55 +02:00

[ticket/14561] Add a progress bar to reclean command

PHPBB3-14561
This commit is contained in:
Matt Friedman
2016-03-27 11:25:19 -07:00
parent 4b789c0418
commit afb69d7cd2
3 changed files with 78 additions and 8 deletions

View File

@@ -38,11 +38,8 @@ class phpbb_console_user_reclean_test extends phpbb_console_user_base
{
$command_tester = $this->get_command_tester();
$command_tester->execute(array(
'command' => $this->command_name,
));
$this->assertContains('CLI_USER_RECLEAN_SUCCESS', $command_tester->getDisplay());
$exit_status = $command_tester->execute(array('command' => $this->command_name));
$this->assertSame(0, $exit_status);
$result = $this->db->sql_query('SELECT user_id FROM ' . USERS_TABLE . " WHERE username_clean = 'test unclean'");
$row = $this->db->sql_fetchrow($result);