Skip to content

Commit

Permalink
Fix TheSportsDbTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle-S committed Sep 23, 2016
1 parent 4b06b49 commit 964845a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/TheSportsDbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public function testGetEventsByDay() {
foreach ($events as $event) {
// Should be an event.
$this->assertInstanceOf(EventInterface::class, $event);
$this->assertEquals($day->format('Y-m-d'), $event->getDate());
$this->assertEquals($day->format('Y-m-d'), $event->getDate()->format('Y-m-d'));
}

$events = $this->db->getEventsByDay($day, 'Soccer');
Expand All @@ -550,7 +550,7 @@ public function testGetEventsByDay() {
foreach ($events as $event) {
// Should be an event.
$this->assertInstanceOf(EventInterface::class, $event);
$this->assertEquals($day->format('Y-m-d'), $event->getDate());
$this->assertEquals($day->format('Y-m-d'), $event->getDate()->format('Y-m-d'));
$this->assertEquals('Soccer', $event->getLeague()->getSport()->getName());
}

Expand All @@ -560,7 +560,7 @@ public function testGetEventsByDay() {
foreach ($events as $event) {
// Should be an event.
$this->assertInstanceOf(EventInterface::class, $event);
$this->assertEquals($day->format('Y-m-d'), $event->getDate());
$this->assertEquals($day->format('Y-m-d'), $event->getDate()->format('Y-m-d'));
$this->assertEquals('English Premier League', $event->getLeague()->getName());
}

Expand All @@ -570,7 +570,7 @@ public function testGetEventsByDay() {
foreach ($events as $event) {
// Should be an event.
$this->assertInstanceOf(EventInterface::class, $event);
$this->assertEquals($day->format('Y-m-d'), $event->getDate());
$this->assertEquals($day->format('Y-m-d'), $event->getDate()->format('Y-m-d'));
$this->assertEquals('English Premier League', $event->getLeague()->getName());
$this->assertEquals('Soccer', $event->getLeague()->getSport()->getName());
}
Expand Down

0 comments on commit 964845a

Please sign in to comment.