From dcd9ad9771d6e78fe46720d664f27c2a68376478 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 8 Oct 2023 12:36:59 +0200 Subject: [PATCH] fix(ClassifierTest): Add some missing assertions Signed-off-by: Marcel Klehr --- tests/ClassifierTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/ClassifierTest.php b/tests/ClassifierTest.php index 6adb7fad..59d7266b 100644 --- a/tests/ClassifierTest.php +++ b/tests/ClassifierTest.php @@ -297,6 +297,15 @@ public function testImagenetPipeline(string $ignoreFileName) : void { ), 'Correct tag should have been set on image file.' ); + + self::assertFalse( + $objectMapper->haveTag( + (string)$this->ignoredFile->getId(), + 'files', + $tagManager->getTag('Alpine', true, true)->getId() + ), + 'Correct tag should not have been set on ignored image file' + ); } public function testLandmarksPipeline() : void { @@ -547,6 +556,15 @@ public function testMovinetPipeline(string $ignoreFileName) : void { ), 'Correct tag should have been set on gif file' ); + + self::assertFalse( + $objectMapper->haveTag( + (string)$this->ignoredFile->getId(), + 'files', + $tagManager->getTag('jumping jacks', true, true)->getId() + ), + 'Correct tag should not have been set on ignored file' + ); } /**