1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/16549] Avoid deprecated properties/methods in newer PHPUnit versions

PHPBB3-16549
This commit is contained in:
rxu
2020-07-13 22:23:55 +07:00
parent f6a7fe168a
commit c954249dfa
6 changed files with 190 additions and 29 deletions

View File

@@ -30,7 +30,9 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
{
parent::__construct($name, $data, $dataName);
$this->backupStaticAttributesBlacklist['phpbb_functional_feed_test'] = array('init_values');
$this->excludeBackupStaticAttributes([
'phpbb_functional_feed_test' => ['init_values'],
]);
$this->purge_cache();
}

View File

@@ -22,9 +22,9 @@ class phpbb_functional_ucp_allow_pm_test extends phpbb_functional_test_case
{
parent::__construct();
$this->backupStaticAttributesBlacklist += array(
'phpbb_functional_ucp_allow_pm_test' => array('data'),
);
$this->excludeBackupStaticAttributes([
'phpbb_functional_ucp_allow_pm_test' => ['data'],
]);
}
// user A sends a PM to user B where B accepts PM