Add assertion for checking event names

This commit is contained in:
Oliver Davies 2019-05-20 01:06:09 +01:00
parent 45ebddf30a
commit e7a2bdebe7

View file

@ -164,6 +164,10 @@ class TalksExtensionTest extends TestCase
tap($this->extension->getEvents($talks), function (Collection $events) {
$this->assertCount(3, $events);
$this->assertSame(
['event_a', 'event_b', 'event_a'],
$events->pluck('event')->toArray()
);
});
}