Return Collections rather than arrays
This commit is contained in:
parent
3ec494d693
commit
eac0cba9ae
3 changed files with 16 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue