[ticket/690] Adjust setUp() declaration and classes

B3P-690
This commit is contained in:
Marc Alexander
2021-08-27 21:30:59 +02:00
parent 5b62c517e5
commit 7ee3bd1727
32 changed files with 32 additions and 79 deletions

View File

@@ -11,7 +11,7 @@ class board3_portal_columns_test extends \board3\portal\tests\testframework\test
{
protected $portal_columns;
public function setUp()
public function setUp(): void
{
parent::setUp();
@@ -64,4 +64,4 @@ class board3_portal_columns_test extends \board3\portal\tests\testframework\test
{
$this->assertEquals($constant, $this->portal_columns->string_to_constant($string));
}
}
}

View File

@@ -20,7 +20,7 @@ class phpbb_portal_fetch_posts_test extends \board3\portal\tests\testframework\d
protected $default_main_columns = array('topic_count', 'global_id', 'topic_icons');
protected $fetch_posts;
public function setUp()
public function setUp(): void
{
global $auth, $cache, $phpbb_dispatcher, $phpbb_root_path, $phpEx, $template, $user;

View File

@@ -37,7 +37,7 @@ class modules_manager_confirm_box_test extends \board3\portal\tests\testframewor
return $this->createXMLDataSet(dirname(__FILE__) . '/../acp/fixtures/modules.xml');
}
public function setUp()
public function setUp(): void
{
global $cache, $db, $portal_config, $phpbb_root_path, $phpEx;

View File

@@ -31,7 +31,7 @@ class board3_portal_modules_manager_test extends \board3\portal\tests\testframew
return $this->createXMLDataSet(dirname(__FILE__) . '/../acp/fixtures/modules.xml');
}
public function setUp()
public function setUp(): void
{
global $cache, $db, $phpbb_root_path, $phpEx;