diff --git a/src/Speakers/tests/SpeakerTest.php b/src/Speakers/tests/SpeakerTest.php index e13685c..d8ae9fc 100644 --- a/src/Speakers/tests/SpeakerTest.php +++ b/src/Speakers/tests/SpeakerTest.php @@ -22,7 +22,17 @@ class SpeakerTest extends TestCase /** @test */ public function get_sessions_for_a_speaker() { - $this->markTestIncomplete(); + $speaker = ['title' => 'Oliver Davies']; + + $sessions = [ + ['title' => 'Introduction to Views', 'speakers' => ['Tom Metcalfe']], + ['title' => 'Test Driven Drupal', 'speakers' => ['Oliver Davies']], + ]; + + $sessions = $this->extension->getSpeakerSessions($speaker, $sessions); + + $this->assertCount(1, $sessions); + $this->assertSame('Test Driven Drupal', $sessions[0]['title']); } /** @test */