From b0ea499ad49599854dca4fc309cbe7cfed9a220e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 10 Jun 2025 20:47:23 +0100 Subject: [PATCH] Revert "Add initial PresentationCounter logic" This reverts commit 1fe63e7326426d3234123d8634b67e8017599f43. --- .../src/PresentationCounter.php | 13 ----- .../src/Kernel/PresentationCounterTest.php | 49 ------------------- 2 files changed, 62 deletions(-) delete mode 100644 modules/opd_presentations/src/PresentationCounter.php delete mode 100644 modules/opd_presentations/tests/src/Kernel/PresentationCounterTest.php diff --git a/modules/opd_presentations/src/PresentationCounter.php b/modules/opd_presentations/src/PresentationCounter.php deleted file mode 100644 index 28836bf34..000000000 --- a/modules/opd_presentations/src/PresentationCounter.php +++ /dev/null @@ -1,13 +0,0 @@ -createPresentation( - events: [ - Paragraph::create(['type' => 'event']), - ], - ); - - $counter = $this->container->get(PresentationCounter::class); - - $this->assertSame( - actual: $counter->getCount(), - expected: 1, - ); - } - - /** - * @param ParagraphInterface[] $events - */ - private function createPresentation(array $events): NodeInterface { - return $this->createNode([ - 'field_events' => $events, - 'type' => 'presentation', - ]); - } - -}