mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/16549] Move from assert[Not]Contains to assertString[Not]ContainsString
PHPBB3-16549
This commit is contained in:
@@ -81,6 +81,6 @@ class phpbb_console_user_activate_test extends phpbb_console_user_base
|
||||
'--deactivate' => $deactivate,
|
||||
));
|
||||
|
||||
$this->assertContains($expected, $command_tester->getDisplay());
|
||||
$this->assertStringContainsString($expected, $command_tester->getDisplay());
|
||||
}
|
||||
}
|
||||
|
@@ -93,7 +93,7 @@ class phpbb_console_user_add_test extends phpbb_console_user_base
|
||||
));
|
||||
|
||||
$this->assertNotEquals(null, $this->get_user_id('foo'));
|
||||
$this->assertContains('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_add_dialog()
|
||||
@@ -113,7 +113,7 @@ class phpbb_console_user_add_test extends phpbb_console_user_base
|
||||
));
|
||||
|
||||
$this->assertNotEquals(null, $this->get_user_id('bar'));
|
||||
$this->assertContains('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
|
||||
}
|
||||
|
||||
@@ -130,8 +130,8 @@ class phpbb_console_user_add_test extends phpbb_console_user_base
|
||||
'--email' => 'foo'
|
||||
));
|
||||
|
||||
$this->assertContains('USERNAME_TAKEN', $command_tester->getDisplay());
|
||||
$this->assertContains('TOO_SHORT', $command_tester->getDisplay());
|
||||
$this->assertContains('EMAIL_INVALID', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('USERNAME_TAKEN', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('TOO_SHORT', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('EMAIL_INVALID', $command_tester->getDisplay());
|
||||
}
|
||||
}
|
||||
|
@@ -54,7 +54,7 @@ class phpbb_console_user_delete_test extends phpbb_console_user_base
|
||||
));
|
||||
|
||||
$this->assertNull($this->get_user_id('Test'));
|
||||
$this->assertContains('USER_DELETED', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('USER_DELETED', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_delete_non_user()
|
||||
@@ -71,7 +71,7 @@ class phpbb_console_user_delete_test extends phpbb_console_user_base
|
||||
'--delete-posts' => false,
|
||||
));
|
||||
|
||||
$this->assertContains('NO_USER', $command_tester->getDisplay());
|
||||
$this->assertStringContainsString('NO_USER', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_delete_cancel()
|
||||
|
Reference in New Issue
Block a user