diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 13:17:42 +0200 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 16:25:30 +0200 |
commit | 1c01252b5d899c488e007659234b6224ac3f4c19 (patch) | |
tree | 3e2efbe676c75d237aefafccb0e77f2767e47ca8 /tests/installer/installer_config_test.php | |
parent | 612eead5a9932d459d8b65f9217f895c33b51c39 (diff) | |
download | forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.gz forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.bz2 forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.xz forums-1c01252b5d899c488e007659234b6224ac3f4c19.zip |
[ticket/13740] Fix test stubs
PHPBB3-13740
Diffstat (limited to 'tests/installer/installer_config_test.php')
-rw-r--r-- | tests/installer/installer_config_test.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/installer/installer_config_test.php b/tests/installer/installer_config_test.php index d1110bf8f8..6c0079a1ec 100644 --- a/tests/installer/installer_config_test.php +++ b/tests/installer/installer_config_test.php @@ -25,11 +25,11 @@ class phpbb_installer_config_test extends phpbb_test_case $phpbb_root_path = __DIR__ . './../../phpBB/'; $filesystem = $this->getMock('\phpbb\filesystem\filesystem'); $php_ini = $this->getMockBuilder('\phpbb\php\ini') - ->method('get_int') - ->willReturn(-1) - ->method('get_bytes') - ->willReturn(-1) ->getMock(); + $php_ini->method('get_int') + ->willReturn(-1); + $php_ini->method('get_bytes') + ->willReturn(-1); $this->config = new config($filesystem, $php_ini, $phpbb_root_path); } @@ -68,7 +68,8 @@ class phpbb_installer_config_test extends phpbb_test_case $this->config->set_task_progress_count(10); $this->config->increment_current_task_progress(); - $this->assertContains(array('current_task_progress' => 1), $this->config->get_progress_data()); + $progress_data = $this->config->get_progress_data(); + $this->assertEquals(1, $progress_data['current_task_progress']); $this->config->increment_current_task_progress(2); |