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' + ); } /**