mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 08:13:14 +02:00
[ticket/17176] Fix some PHP 8.x deprecations and clean up test code
PHPBB3-17176
This commit is contained in:
@@ -88,7 +88,7 @@ class phpbb_template_extension_test extends phpbb_template_template_test_case
|
||||
$class = new ReflectionClass('\phpbb\avatar\manager');
|
||||
$enabled_drivers = $class->getProperty('enabled_drivers');
|
||||
$enabled_drivers->setAccessible(true);
|
||||
$enabled_drivers->setValue(false);
|
||||
$enabled_drivers->setValue($class, false);
|
||||
|
||||
$this->template_path = $this->test_path . '/templates';
|
||||
|
||||
|
@@ -15,6 +15,12 @@ require_once __DIR__ . '/template_test_case.php';
|
||||
|
||||
class phpbb_template_template_test_case_with_tree extends phpbb_template_template_test_case
|
||||
{
|
||||
/** @var \phpbb\path_helper */
|
||||
protected $phpbb_path_helper;
|
||||
|
||||
/** @var string */
|
||||
protected $parent_template_path;
|
||||
|
||||
protected function setup_engine(array $new_config = array())
|
||||
{
|
||||
global $phpbb_root_path, $phpEx, $user;
|
||||
|
Reference in New Issue
Block a user