Skip to content

Commit

Permalink
Exposed object type property on event report
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed May 28, 2018
1 parent b96e8a1 commit e2f8de1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EventReports/EventReportItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class EventReportItem
* @var string
*/
public $entrance;
/**
* @var string
*/
public $objectType;
/**
* @var string
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/EventReports/EventReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function testReportItemProperties()
self::assertEquals(9, $reportItem->categoryKey);
self::assertEquals("ticketType1", $reportItem->ticketType);
self::assertEquals("order1", $reportItem->orderId);
self::assertEquals("seat", $reportItem->objectType);
self::assertTrue($reportItem->forSale);
self::assertNull($reportItem->section);
self::assertNull($reportItem->entrance);
Expand All @@ -40,6 +41,7 @@ public function testReportItemPropertiesForGA()
$reportItem = $report["GA1"][0];
self::assertEquals(100, $reportItem->capacity);
self::assertEquals(5, $reportItem->numBooked);
self::assertEquals("generalAdmission", $reportItem->objectType);
}

public function testByStatus()
Expand Down

0 comments on commit e2f8de1

Please sign in to comment.