Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-11-16 17:15:02 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-11-16 17:20:10 +0300
commit8d301d8300d7839696b398fde2a547bb6037cb94 (patch)
treeefc93e3cf1974beb0cc594f54c26eea134e5f458 /tests
parentf6614962df78d190d56a06ecd6dca6c7662f6d33 (diff)
Use ISO date instead of the timestamp
Diffstat (limited to 'tests')
-rw-r--r--tests/controller/EndpointControllerTest.php20
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])
);