diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-16 17:15:02 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-16 17:20:10 +0300 |
commit | 8d301d8300d7839696b398fde2a547bb6037cb94 (patch) | |
tree | efc93e3cf1974beb0cc594f54c26eea134e5f458 /tests | |
parent | f6614962df78d190d56a06ecd6dca6c7662f6d33 (diff) |
Use ISO date instead of the timestamp
Diffstat (limited to 'tests')
-rw-r--r-- | tests/controller/EndpointControllerTest.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/controller/EndpointControllerTest.php b/tests/controller/EndpointControllerTest.php index 68987b4..0bda457 100644 --- a/tests/controller/EndpointControllerTest.php +++ b/tests/controller/EndpointControllerTest.php @@ -380,16 +380,16 @@ class EndpointControllerTest extends TestCase { ->willReturn('action'); $this->assertEquals([ - 'notification_id' => $id, - 'app' => $app, - 'user' => $user, - 'timestamp' => $timestamp, - 'object_type' => $objectType, - 'object_id' => $objectId, - 'subject' => $subject, - 'message' => $message, - 'link' => $link, - 'actions' => $actionsExpected, + 'notification_id' => $id, + 'app' => $app, + 'user' => $user, + 'datetime' => date('c', $timestamp), + 'object_type' => $objectType, + 'object_id' => $objectId, + 'subject' => $subject, + 'message' => $message, + 'link' => $link, + 'actions' => $actionsExpected, ], $this->invokePrivate($controller, 'notificationToArray', [$id, $notification]) ); |