Add assertion for checking event names
This commit is contained in:
parent
45ebddf30a
commit
e7a2bdebe7
|
@ -164,6 +164,10 @@ class TalksExtensionTest extends TestCase
|
||||||
|
|
||||||
tap($this->extension->getEvents($talks), function (Collection $events) {
|
tap($this->extension->getEvents($talks), function (Collection $events) {
|
||||||
$this->assertCount(3, $events);
|
$this->assertCount(3, $events);
|
||||||
|
|
||||||
|
$this->assertSame(
|
||||||
|
['event_a', 'event_b', 'event_a'],
|
||||||
|
$events->pluck('event')->toArray()
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue