mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Fix user test case: DateTimeZone comparison
This commit is contained in:
parent
fb0f0b5b76
commit
d348477455
@ -65,7 +65,8 @@ class UserTest extends \PHPUnit_Framework_TestCase
|
|||||||
'timezone' => $explicitTz
|
'timezone' => $explicitTz
|
||||||
));
|
));
|
||||||
$user->setPreferences($prefs);
|
$user->setPreferences($prefs);
|
||||||
$this->assertEquals($user->getTimeZone(), new DateTimeZone($defaultTz),
|
|
||||||
|
$this->assertEquals($user->getTimeZone(), new DateTimeZone($explicitTz),
|
||||||
'User\'s timezone does not match the timezone set by himself'
|
'User\'s timezone does not match the timezone set by himself'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user