1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/13740] Use service collection instead of array of task names

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-09 15:26:48 +02:00
parent 794726a464
commit 62103cec30
14 changed files with 221 additions and 242 deletions

View File

@@ -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,
),