From d348477455012d1042ce6b790fa9c7c724c24e43 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Tue, 20 Aug 2013 11:27:25 +0200 Subject: [PATCH] Fix user test case: DateTimeZone comparison --- test/php/library/Icinga/UserTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/php/library/Icinga/UserTest.php b/test/php/library/Icinga/UserTest.php index 2cd722dd1..714663140 100644 --- a/test/php/library/Icinga/UserTest.php +++ b/test/php/library/Icinga/UserTest.php @@ -65,7 +65,8 @@ class UserTest extends \PHPUnit_Framework_TestCase 'timezone' => $explicitTz )); $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' ); }