1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16345] Small improvements

PHPBB3-16346
This commit is contained in:
rubencm
2020-06-07 02:15:35 +00:00
parent 3cceeb45bf
commit 774c609c4a
284 changed files with 1380 additions and 835 deletions

View File

@@ -13,7 +13,7 @@
class phpbb_migrator_convert_timezones_test extends phpbb_database_test_case
{
protected $notifications, $db, $container, $user, $config, $auth, $cache;
protected $db;
public function getDataSet()
{

View File

@@ -13,7 +13,7 @@
class get_callable_from_step_test extends phpbb_database_test_case
{
public function setUp(): void
protected function setUp(): void
{
global $phpbb_root_path, $php_ext, $table_prefix, $phpbb_log, $user;
@@ -22,7 +22,6 @@ class get_callable_from_step_test extends phpbb_database_test_case
$phpbb_log = $this->getMockBuilder('\phpbb\log\log')->disableOriginalConstructor()->getMock();
$db = $this->new_dbal();
$factory = new \phpbb\db\tools\factory();
$cache_service = $this->getMockBuilder('\phpbb\cache\service')->disableOriginalConstructor()->getMock();
$user = $this->getMockBuilder('\phpbb\user')->disableOriginalConstructor()->getMock();
$user->ip = '127.0.0.1';
$module_manager = new \phpbb\module\module_manager(
@@ -33,7 +32,7 @@ class get_callable_from_step_test extends phpbb_database_test_case
$phpbb_root_path,
$php_ext
);
$module_tools = new \phpbb\db\migration\tool\module($db, $cache_service, $user, $module_manager, $phpbb_root_path, $php_ext, 'phpbb_modules');
$module_tools = new \phpbb\db\migration\tool\module($db, $user, $module_manager, 'phpbb_modules');
$this->migrator = new \phpbb\db\migrator(
new phpbb_mock_container_builder(),
new \phpbb\config\config(array()),

View File

@@ -13,7 +13,7 @@
class get_schema_steps_test extends phpbb_test_case
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

View File

@@ -16,7 +16,7 @@ class reverse_update_data_test extends phpbb_test_case
/** @var \phpbb\db\migration\helper */
protected $helper;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

View File

@@ -24,7 +24,7 @@ class schema_generator_test extends phpbb_test_case
/** @var \phpbb\db\migration\schema_generator */
protected $generator;
public function setUp(): void
protected function setUp(): void
{
global $phpbb_root_path, $phpEx;