From 380915948b8e637634d75d7e2769a52a1f0f59a8 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 9 Jan 2021 18:00:08 +0100 Subject: [PATCH] Improved TagRepositoryTest --- module/Core/test-db/Repository/TagRepositoryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/Core/test-db/Repository/TagRepositoryTest.php b/module/Core/test-db/Repository/TagRepositoryTest.php index e28b38fb..8f9894cd 100644 --- a/module/Core/test-db/Repository/TagRepositoryTest.php +++ b/module/Core/test-db/Repository/TagRepositoryTest.php @@ -145,15 +145,18 @@ class TagRepositoryTest extends DatabaseTestCase self::assertTrue($this->repo->tagExists('bar')); self::assertTrue($this->repo->tagExists('baz')); self::assertTrue($this->repo->tagExists('another')); + self::assertFalse($this->repo->tagExists('invalid')); self::assertTrue($this->repo->tagExists('foo', $authorApiKey)); self::assertTrue($this->repo->tagExists('bar', $authorApiKey)); self::assertTrue($this->repo->tagExists('baz', $authorApiKey)); self::assertFalse($this->repo->tagExists('another', $authorApiKey)); + self::assertFalse($this->repo->tagExists('invalid', $authorApiKey)); self::assertFalse($this->repo->tagExists('foo', $domainApiKey)); self::assertFalse($this->repo->tagExists('bar', $domainApiKey)); self::assertFalse($this->repo->tagExists('baz', $domainApiKey)); self::assertTrue($this->repo->tagExists('another', $domainApiKey)); + self::assertFalse($this->repo->tagExists('invalid', $domainApiKey)); } }