diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-27 16:56:46 +0200 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2016-02-29 08:14:29 -0800 |
commit | df4a620ba146d895be4910761bc030045abbae93 (patch) | |
tree | c60befa50ee294214feccef68c09e49f1fe605ae /tests/console | |
parent | 50761104ba6590de86ec651b5679983eaf2ff600 (diff) | |
download | forums-df4a620ba146d895be4910761bc030045abbae93.tar forums-df4a620ba146d895be4910761bc030045abbae93.tar.gz forums-df4a620ba146d895be4910761bc030045abbae93.tar.bz2 forums-df4a620ba146d895be4910761bc030045abbae93.tar.xz forums-df4a620ba146d895be4910761bc030045abbae93.zip |
[ticket/12684] Fix tests
PHPBB3-12684
Diffstat (limited to 'tests/console')
-rw-r--r-- | tests/console/user/add_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/console/user/add_test.php b/tests/console/user/add_test.php index 6c28c46815..6f80a8658a 100644 --- a/tests/console/user/add_test.php +++ b/tests/console/user/add_test.php @@ -50,7 +50,7 @@ class phpbb_console_command_user_add_test extends phpbb_database_test_case $db = $this->db = $this->new_dbal(); - $this->user = $this->getMock('\phpbb\user'); + $this->user = $this->getMock('\phpbb\user', array(), array('\phpbb\datetime')); $this->user->method('lang')->will($this->returnArgument(0)); $driver_helper = new \phpbb\passwords\driver\helper($this->config); @@ -90,7 +90,7 @@ class phpbb_console_command_user_add_test extends phpbb_database_test_case $this->assertEquals(2, $this->get_user_id('Admin')); - $this->dialog->setInputStream($this->getInputStream("bar\npass\npass\nbar@test.com\n")); + $this->dialog->setInputStream($this->getInputStream("bar\npassword\npassword\nbar@test.com\n")); $command_tester->execute(array( 'command' => $this->command_name, |