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

[ticket/17535] Fix tests PHP deprecations and notices

PHPBB-17535
This commit is contained in:
rxu
2025-07-18 11:00:58 +07:00
parent 8a99024087
commit 902c99bc0c
36 changed files with 193 additions and 111 deletions

View File

@@ -34,10 +34,11 @@ class phpbb_profilefield_type_date_test extends phpbb_test_case
->will($this->returnCallback(array($this, 'create_datetime_callback')));
$this->user->timezone = new DateTimeZone('UTC');
$this->user->lang = array(
'datetime' => array(),
'DATE_FORMAT' => 'm/d/Y',
);
$this->user->expects($this->any())
->method('__get')->with('lang')->willReturn([
'datetime' => [],
'DATE_FORMAT' => 'm/d/Y',
]);
$request = $this->createMock('\phpbb\request\request');
$template = $this->createMock('\phpbb\template\template');