From f821dea06c1bfee2c69bb269dd4c9dc4ebc2806f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 5 Jan 2021 19:29:42 +0100 Subject: [PATCH] Fixed typo on fixture --- module/Rest/src/Action/Tag/DeleteTagsAction.php | 6 ------ module/Rest/test-api/Fixtures/VisitsFixture.php | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/module/Rest/src/Action/Tag/DeleteTagsAction.php b/module/Rest/src/Action/Tag/DeleteTagsAction.php index f38c443a..aea11a41 100644 --- a/module/Rest/src/Action/Tag/DeleteTagsAction.php +++ b/module/Rest/src/Action/Tag/DeleteTagsAction.php @@ -22,12 +22,6 @@ class DeleteTagsAction extends AbstractRestAction $this->tagService = $tagService; } - /** - * Process an incoming server request and return a response, optionally delegating - * to the next middleware component to create the response. - * - * - */ public function handle(ServerRequestInterface $request): ResponseInterface { $query = $request->getQueryParams(); diff --git a/module/Rest/test-api/Fixtures/VisitsFixture.php b/module/Rest/test-api/Fixtures/VisitsFixture.php index a07d95d1..73601748 100644 --- a/module/Rest/test-api/Fixtures/VisitsFixture.php +++ b/module/Rest/test-api/Fixtures/VisitsFixture.php @@ -31,10 +31,10 @@ class VisitsFixture extends AbstractFixture implements DependentFixtureInterface $manager->persist(new Visit($defShortUrl, new Visitor('shlink-tests-agent', '', '127.0.0.1'))); $manager->persist(new Visit($defShortUrl, new Visitor('shlink-tests-agent', 'https://app.shlink.io', ''))); - /** @var ShortUrl $defShortUrl */ - $defShortUrl = $this->getReference('ghi789_short_url'); - $manager->persist(new Visit($defShortUrl, new Visitor('shlink-tests-agent', '', '1.2.3.4'))); - $manager->persist(new Visit($defShortUrl, new Visitor('shlink-tests-agent', 'https://app.shlink.io', ''))); + /** @var ShortUrl $ghiShortUrl */ + $ghiShortUrl = $this->getReference('ghi789_short_url'); + $manager->persist(new Visit($ghiShortUrl, new Visitor('shlink-tests-agent', '', '1.2.3.4'))); + $manager->persist(new Visit($ghiShortUrl, new Visitor('shlink-tests-agent', 'https://app.shlink.io', ''))); $manager->flush(); }