aboutsummaryrefslogtreecommitdiffstats
path: root/tests/installer
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-07-09 15:26:48 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-09 15:30:30 +0200
commit62103cec300ddadb904862ee2a74d68f71eb32ca (patch)
tree2ad0f1a4b9d9b58f18671b74ad4e3ddf2ba7e294 /tests/installer
parent794726a464452a6056d8a2ba06c4394767d4c497 (diff)
downloadforums-62103cec300ddadb904862ee2a74d68f71eb32ca.tar
forums-62103cec300ddadb904862ee2a74d68f71eb32ca.tar.gz
forums-62103cec300ddadb904862ee2a74d68f71eb32ca.tar.bz2
forums-62103cec300ddadb904862ee2a74d68f71eb32ca.tar.xz
forums-62103cec300ddadb904862ee2a74d68f71eb32ca.zip
[ticket/13740] Use service collection instead of array of task names
PHPBB3-13740
Diffstat (limited to 'tests/installer')
-rw-r--r--tests/installer/installer_config_test.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/installer/installer_config_test.php b/tests/installer/installer_config_test.php
index 6c0079a1ec..4b83eb9a8f 100644
--- a/tests/installer/installer_config_test.php
+++ b/tests/installer/installer_config_test.php
@@ -63,8 +63,8 @@ class phpbb_installer_config_test extends phpbb_test_case
*/
public function test_progress_tracking()
{
- $this->config->set_finished_task('foo', 3);
- $this->config->set_active_module('bar', 4);
+ $this->config->set_finished_task('foo');
+ $this->config->set_active_module('bar');
$this->config->set_task_progress_count(10);
$this->config->increment_current_task_progress();
@@ -74,10 +74,8 @@ class phpbb_installer_config_test extends phpbb_test_case
$this->config->increment_current_task_progress(2);
$this->assertEquals(array(
- 'last_task_module_index' => 4,
- 'last_task_module_name' => 'bar', // Stores the service name of the latest finished module
- 'last_task_index' => 3,
- 'last_task_name' => 'foo', // Stores the service name of the latest finished task
+ 'last_task_module_name' => 'bar',
+ 'last_task_name' => 'foo',
'max_task_progress' => 10,
'current_task_progress' => 3,
),