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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user