From 16f36c085213d97a7e33b921206eae5e8615a8c3 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 10 Oct 2024 14:32:55 +0200 Subject: [PATCH] Improve test coverage --- tests/NodaIDGetterTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/NodaIDGetterTest.php b/tests/NodaIDGetterTest.php index df51c9a..9a466a2 100644 --- a/tests/NodaIDGetterTest.php +++ b/tests/NodaIDGetterTest.php @@ -230,6 +230,7 @@ final class NodaIDGetterTest extends TestCase { public function testGetPlaceIdByNameWorks(string $name, int $expected_id):void { $this->runRegularComparisonTests("getPlaceIDByName", $name, $expected_id); + $this->runRegularComparisonTests("getPlaceIDByNamesAndRewrites", $name, $expected_id); } @@ -266,6 +267,7 @@ final class NodaIDGetterTest extends TestCase { public function testGetPlaceIdByRewriteWorks(string $name, int $expected_id):void { $this->runRegularComparisonTests("getPlaceIDByRewrite", $name, $expected_id); + $this->runRegularComparisonTests("getPlaceIDByNamesAndRewrites", $name, $expected_id); } @@ -307,6 +309,7 @@ final class NodaIDGetterTest extends TestCase { public function testGetTagIdByNameWorks(string $name, int $expected_id):void { $this->runRegularComparisonTests("getTagIDByName", $name, $expected_id); + $this->runRegularComparisonTests("getTagIDByNamesAndRewrites", $name, $expected_id); } @@ -392,6 +395,7 @@ final class NodaIDGetterTest extends TestCase { public function testGetTimeIdByNameWorks(string $name, int $expected_id):void { $this->runRegularComparisonTests("getTimeIDByName", $name, $expected_id); + $this->runRegularComparisonTests("getTimeIDByNamesAndRewrites", $name, $expected_id); } @@ -428,6 +432,7 @@ final class NodaIDGetterTest extends TestCase { public function testGetTimeIdByRewriteWorks(string $name, int $expected_id):void { $this->runRegularComparisonTests("getTimeIDByRewrite", $name, $expected_id); + $this->runRegularComparisonTests("getTimeIDByNamesAndRewrites", $name, $expected_id); }