Skip to content

Commit

Permalink
fix(ClassifierTest): Add some missing assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Oct 8, 2023
1 parent 83bf77c commit dcd9ad9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ClassifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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'
);
}

/**
Expand Down

0 comments on commit dcd9ad9

Please sign in to comment.