Get the sessions for a speaker
This commit is contained in:
parent
e7a1051376
commit
1024e7d992
|
@ -22,7 +22,17 @@ class SpeakerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function get_sessions_for_a_speaker()
|
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 */
|
/** @test */
|
||||||
|
|
Loading…
Reference in a new issue