mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[ticket/17525] Fix handling index name prefix logic for renaming
PHPBB-17525
This commit is contained in:
@@ -154,6 +154,7 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
|
||||
{
|
||||
$phpbb_root_path = __DIR__ . './../../phpBB/';
|
||||
$php_ext = 'php';
|
||||
$table_prefix = 'phpbb_';
|
||||
|
||||
$config = new \phpbb\config\config(array('version' => PHPBB_VERSION));
|
||||
$db = $this->new_dbal();
|
||||
@@ -162,7 +163,7 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$finder_factory = new \phpbb\finder\factory(null, false, $phpbb_root_path, $php_ext);
|
||||
$db_tools = $factory->get($db_doctrine);
|
||||
$table_prefix = 'phpbb_';
|
||||
$db_tools->set_table_prefix($table_prefix);
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
|
||||
|
@@ -37,6 +37,7 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->table_prefix = 'phpbb_';
|
||||
$this->config = new \phpbb\config\config(array(
|
||||
'version' => '3.1.0',
|
||||
));
|
||||
@@ -45,13 +46,13 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$this->db_tools = $factory->get($this->db_doctrine);
|
||||
$this->db_tools->set_table_prefix($this->table_prefix);
|
||||
$finder_factory = $this->createMock('\phpbb\finder\factory');
|
||||
$this->phpbb_root_path = __DIR__ . '/';
|
||||
$this->phpEx = 'php';
|
||||
|
||||
$this->cache = new \phpbb\cache\service(new phpbb_mock_cache(), $this->config, $this->db, $phpbb_dispatcher, $this->phpbb_root_path, $this->phpEx);
|
||||
|
||||
$this->table_prefix = 'phpbb_';
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
$cache_path = $this->phpbb_root_path . 'cache/twig';
|
||||
|
Reference in New Issue
Block a user