From 864c2429a577caf3867d140352b1ae5604533c84 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 17 Dec 2020 23:23:00 +0000 Subject: [PATCH] Ensure that method names are in a consistent format --- .../tests/src/Kernel/EventsAreReorderedByDateTest.php | 8 ++++++-- .../talks/tests/src/Kernel/UpdatesTalkCreatedDateTest.php | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/web/modules/custom/talks/tests/src/Kernel/EventsAreReorderedByDateTest.php b/web/modules/custom/talks/tests/src/Kernel/EventsAreReorderedByDateTest.php index 0f0476b..f25763c 100644 --- a/web/modules/custom/talks/tests/src/Kernel/EventsAreReorderedByDateTest.php +++ b/web/modules/custom/talks/tests/src/Kernel/EventsAreReorderedByDateTest.php @@ -1,5 +1,7 @@ createEvent([ 'field_date' => Carbon::today()->addWeeks(2), @@ -50,7 +53,8 @@ final class EventsAreReorderedByDateTest extends TalksTestBase { ); } - public function testUpdatingNode(): void { + /** @test */ + public function the_events_are_reordered_when_a_talk_node_is_updated(): void { $events = [ $this->createEvent([ 'field_date' => Carbon::today()->addWeeks(2), diff --git a/web/modules/custom/talks/tests/src/Kernel/UpdatesTalkCreatedDateTest.php b/web/modules/custom/talks/tests/src/Kernel/UpdatesTalkCreatedDateTest.php index 5beeeac..0867e10 100644 --- a/web/modules/custom/talks/tests/src/Kernel/UpdatesTalkCreatedDateTest.php +++ b/web/modules/custom/talks/tests/src/Kernel/UpdatesTalkCreatedDateTest.php @@ -1,5 +1,7 @@ addWeek(); $eventDateFormat = $eventDate ->format(DateTimeItemInterface::DATE_STORAGE_FORMAT); @@ -22,7 +25,8 @@ final class UpdatesTalkCreatedDateTest extends TalksTestBase { $this->assertEqual($eventDateTimestamp, $talk->getCreatedTime()); } - public function testUpdatingNode(): void { + /** @test */ + public function the_date_is_updated_when_a_talk_node_is_updated(): void { $talk = $this->createTalk(); $originalCreatedTime = $talk->getCreatedTime();