mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 12:52:08 +02:00
[ticket/16510] Exclude deleted config entries in test
PHPBB3-16510
This commit is contained in:
parent
5e23959e12
commit
b5a1c54ab2
@ -94,29 +94,28 @@ class migrations_check_config_added_test extends phpbb_test_case
|
||||
continue;
|
||||
}
|
||||
|
||||
$config_name = $step[1][0];
|
||||
// Exclude removed configuration options and filter them out
|
||||
if ($step[0] == 'config.remove')
|
||||
{
|
||||
if (!isset($config_removed[$step[1][0]]))
|
||||
if (!isset($config_removed[$config_name]))
|
||||
{
|
||||
$config_removed[$step[1][0]] = true;
|
||||
$config_removed[$config_name] = true;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$action = explode('.', $step[0]);
|
||||
$method = $action[1];
|
||||
$config_name = $step[1][0];
|
||||
|
||||
// Fill error entries for configuration options which were not added to shema_data.sql
|
||||
if (!isset($config_names[$config_name]) && !isset($config_removed[$config_name]))
|
||||
if (!isset($config_names[$config_name]))
|
||||
{
|
||||
$config_names[$config_name] = [$config_name, $class];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Drop configuration options which were removed by config.remove
|
||||
$config_names = array_diff_key($config_names, $config_removed);
|
||||
return $config_names;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user