1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-30 02:59:29 +02:00
php-phpbb/tests/installer/mocks/test_installer_task_mock.php
Mate Bartus 051b7d1867 [ticket/13740] Module base test
PHPBB3-13740
2015-07-10 22:15:03 +02:00

45 lines
738 B
PHP

<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
class test_installer_task_mock extends \phpbb\install\task_base
{
private $task_was_runned;
public function __construct()
{
$this->task_was_runned = false;
parent::__construct();
}
public function run()
{
$this->task_was_runned = true;
}
public function was_task_runned()
{
return $this->task_was_runned;
}
public function get_task_lang_name()
{
return '';
}
public static function get_step_count()
{
return 2;
}
}