diff --git a/tests/kb_match_key_repair_test.php b/tests/kb_match_key_repair_test.php index 6a195ad..ea6ef76 100644 --- a/tests/kb_match_key_repair_test.php +++ b/tests/kb_match_key_repair_test.php @@ -24,7 +24,7 @@ class kb_match_key_repair_test extends \PHPUnit\Framework\TestCase private function migration($db): version_2_0_25 { - return new version_2_0_25(new \phpbb\config\config(['kb_version' => '2.0.24']), $db, $this->createMock(\phpbb\db\tools\tools_interface::class), '', 'php', 'phpbb_'); + return new version_2_0_25(new \phpbb\config\config(['kb_version' => '2.0.24']), $db, $this->createMock(\phpbb\db\tools\tools_interface::class), '', 'php', 'phpbb_', []); } /** diff --git a/tests/kb_search_key_migration_test.php b/tests/kb_search_key_migration_test.php index 19650e2..d7adaa7 100644 --- a/tests/kb_search_key_migration_test.php +++ b/tests/kb_search_key_migration_test.php @@ -41,7 +41,7 @@ private function run_add_key(array $indexes, string $layer = 'mysqli'): array return array_shift($rows) ?? false; }); - $migration = new version_1_0_3(new \phpbb\config\config([]), $db, $this->createMock(\phpbb\db\tools\tools_interface::class), '', 'php', 'phpbb_'); + $migration = new version_1_0_3(new \phpbb\config\config([]), $db, $this->createMock(\phpbb\db\tools\tools_interface::class), '', 'php', 'phpbb_', []); $migration->add_key(); return $queries; diff --git a/tests/kb_upload_directory_test.php b/tests/kb_upload_directory_test.php index bc6f974..4fa09ed 100644 --- a/tests/kb_upload_directory_test.php +++ b/tests/kb_upload_directory_test.php @@ -186,7 +186,7 @@ public function test_attachments_stay_where_they_are_when_the_new_folder_cannot_ public function test_the_migration_moves_the_attachments_and_sets_the_version() { - $migration = new \phpbbmodders\knowledgebase\migrations\version_2_0_28(new \phpbb\config\config([]), $this->createMock(\phpbb\db\driver\driver_interface::class), $this->createMock(\phpbb\db\tools\tools_interface::class), $this->root, 'php', 'phpbb_'); + $migration = new \phpbbmodders\knowledgebase\migrations\version_2_0_28(new \phpbb\config\config([]), $this->createMock(\phpbb\db\driver\driver_interface::class), $this->createMock(\phpbb\db\tools\tools_interface::class), $this->root, 'php', 'phpbb_', []); $this->legacy_file('moved.dat'); $this->assertSame(['\phpbbmodders\knowledgebase\migrations\version_2_0_27'], $migration::depends_on());