Return Collections rather than arrays

This commit is contained in:
Oliver Davies 2019-09-27 01:51:32 +01:00
parent 3ec494d693
commit eac0cba9ae
3 changed files with 16 additions and 18 deletions

View file

@ -53,7 +53,7 @@ class RetrievingEventsTest extends TestCase
$events = $this->extension->filterPastEvents($talks);
$this->assertInstanceOf(Collection::class, $talks);
$this->assertTrue(is_array($events));
$this->assertInstanceOf(Collection::class, $events);
$this->assertCount(2, $events);
}
@ -89,7 +89,7 @@ class RetrievingEventsTest extends TestCase
$events = $this->extension->filterUpcomingEvents($talks);
$this->assertInstanceOf(Collection::class, $talks);
$this->assertTrue(is_array($events));
$this->assertInstanceOf(Collection::class, $events);
$this->assertCount(2, $events);
}