From 52565c99f1285742b0af7fc90b756c37950336b0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 25 Aug 2021 09:00:00 +0100 Subject: [PATCH] Populate more test methods --- tests/TalkExtensionTest.php | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/tests/TalkExtensionTest.php b/tests/TalkExtensionTest.php index 7b1bc4c5..0adff569 100644 --- a/tests/TalkExtensionTest.php +++ b/tests/TalkExtensionTest.php @@ -38,13 +38,38 @@ final class TalkExtensionTest extends TestCase /** @test */ public function it_counts_multiple_events_from_a_single_talk(): void { - $this->markTestIncomplete(); + $talks = [ + [ + 'title' => 'Building static sites with Sculpin', + 'events' => [ + '', + '', + ] + ], + ]; + + $this->assertSame(2, $this->subject->getPastTalkCount($talks)); } /** @test */ public function it_counts_multiple_events_from_multiple_talks(): void { - $this->markTestIncomplete(); + $talks = [ + [ + 'title' => 'Building static sites with Sculpin', + 'events' => [ + '', + ] + ], + [ + 'title' => 'TDD - Test Driven Drupal', + 'events' => [ + '', + ] + ], + ]; + + $this->assertSame(2, $this->subject->getPastTalkCount($talks)); } /** @test */