Skip to content

Commit

Permalink
Tweaked event log items (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux authored Feb 12, 2024
1 parent 918f639 commit 8919497
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 1 addition & 6 deletions src/EventLog/EventLogItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ class EventLogItem
/**
* @var \Seatsio\LocalDate
*/
public $date;

/**
* @var string
*/
public $workspaceKey;
public $timestamp;

/**
* @var object
Expand Down
5 changes: 2 additions & 3 deletions tests/EventLog/ListAllEventLogItemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8919497

Please sign in to comment.