Get the sessions for a speaker

This commit is contained in:
Oliver Davies 2019-05-21 07:46:32 +01:00
parent e7a1051376
commit 1024e7d992

View file

@ -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 */