From 9be491767b2812188a9cfce7ad2ba60d752396a4 Mon Sep 17 00:00:00 2001 From: Francois Suter Date: Mon, 25 Nov 2024 08:28:44 +0100 Subject: [PATCH] [TASK] Fix failing test and clean up code --- Build/phpunit/FunctionalTestsBootstrap.php | 1 + Build/phpunit/UnitTestsBootstrap.php | 1 + Tests/Unit/Event/DatamapPostprocessEventTest.php | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/Build/phpunit/FunctionalTestsBootstrap.php b/Build/phpunit/FunctionalTestsBootstrap.php index a95bc52..9882f8f 100644 --- a/Build/phpunit/FunctionalTestsBootstrap.php +++ b/Build/phpunit/FunctionalTestsBootstrap.php @@ -1,4 +1,5 @@ subject = new DatamapPostprocessEvent( + [], [], $this->importer ); @@ -63,6 +64,17 @@ public function getDataInitiallyReturnsEmptyArray(): void ); } + /** + * @test + */ + public function getStructuredDataInitiallyReturnsEmptyArray(): void + { + self::assertSame( + [], + $this->subject->getStructuredData() + ); + } + /** * @test */