From f4d10df0f33440b4f4b010408877a9459b90a152 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 27 Feb 2023 09:28:27 +0100 Subject: [PATCH] Delete no longer used spec file --- .../Repository/ShortUrlRepositoryTest.php | 2 +- .../WithInlinedApiKeySpecsEnsuringJoin.php | 26 ------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 module/Rest/src/ApiKey/Spec/WithInlinedApiKeySpecsEnsuringJoin.php diff --git a/module/Core/test-db/ShortUrl/Repository/ShortUrlRepositoryTest.php b/module/Core/test-db/ShortUrl/Repository/ShortUrlRepositoryTest.php index f2cce0f7..da1755ac 100644 --- a/module/Core/test-db/ShortUrl/Repository/ShortUrlRepositoryTest.php +++ b/module/Core/test-db/ShortUrl/Repository/ShortUrlRepositoryTest.php @@ -395,7 +395,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase #[Test] public function importedShortUrlsAreFoundWhenExpected(): void { - $buildImported = static fn (string $shortCode, ?String $domain = null) => + $buildImported = static fn (string $shortCode, ?string $domain = null) => new ImportedShlinkUrl(ImportSource::BITLY, 'foo', [], Chronos::now(), $domain, $shortCode, null); $shortUrlWithoutDomain = ShortUrl::fromImport($buildImported('my-cool-slug'), true); diff --git a/module/Rest/src/ApiKey/Spec/WithInlinedApiKeySpecsEnsuringJoin.php b/module/Rest/src/ApiKey/Spec/WithInlinedApiKeySpecsEnsuringJoin.php deleted file mode 100644 index 2e84d835..00000000 --- a/module/Rest/src/ApiKey/Spec/WithInlinedApiKeySpecsEnsuringJoin.php +++ /dev/null @@ -1,26 +0,0 @@ -apiKey === null || $this->apiKey->isAdmin() ? Spec::andX() : Spec::andX( - Spec::join($this->fieldToJoin, 's'), - $this->apiKey->inlinedSpec(), - ); - } -}