From 8919497897844e72acd1e8a7121c51d6afd22c83 Mon Sep 17 00:00:00 2001 From: mroloux Date: Mon, 12 Feb 2024 13:54:20 +0100 Subject: [PATCH] Tweaked event log items (#110) --- src/EventLog/EventLogItem.php | 7 +------ tests/EventLog/ListAllEventLogItemsTest.php | 5 ++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/EventLog/EventLogItem.php b/src/EventLog/EventLogItem.php index bab2f0f..8efb202 100644 --- a/src/EventLog/EventLogItem.php +++ b/src/EventLog/EventLogItem.php @@ -17,12 +17,7 @@ class EventLogItem /** * @var \Seatsio\LocalDate */ - public $date; - - /** - * @var string - */ - public $workspaceKey; + public $timestamp; /** * @var object diff --git a/tests/EventLog/ListAllEventLogItemsTest.php b/tests/EventLog/ListAllEventLogItemsTest.php index a017868..d846480 100644 --- a/tests/EventLog/ListAllEventLogItemsTest.php +++ b/tests/EventLog/ListAllEventLogItemsTest.php @@ -36,10 +36,9 @@ public function testProperties() $eventLogItem = $this->seatsioClient->eventLog->listAll()->current(); self::assertEquals("chart.created", $eventLogItem->type); - self::assertEquals($this->workspace->key, $eventLogItem->workspaceKey); - self::assertNotNull($eventLogItem->date); + self::assertNotNull($eventLogItem->timestamp); self::assertGreaterThan(0, $eventLogItem->id); - self::assertEquals((object)["key" => $chart->key], $eventLogItem->data); + self::assertEquals((object)["key" => $chart->key, "workspaceKey" => $this->workspace->key], $eventLogItem->data); } private function waitUntilEventLogItemsAvailable()