From bcecdd8eb648ec57e53b41adcd3ba1b8d605b7d1 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Tue, 2 Jun 2020 16:29:55 +0200 Subject: [PATCH] Chnaged the test response codes to 201. --- tests/Integration/Service/StatsApiServiceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Service/StatsApiServiceTest.php b/tests/Integration/Service/StatsApiServiceTest.php index 7ad96fd..2251390 100644 --- a/tests/Integration/Service/StatsApiServiceTest.php +++ b/tests/Integration/Service/StatsApiServiceTest.php @@ -109,7 +109,7 @@ class StatsApiServiceTest extends AbstractIntegrationTestCase } $this->mockHandler->append(new Response(200, [], $this->getStatsResponse())); - $this->mockHandler->append(new Response(200, [], '{"status": "ok"}')); + $this->mockHandler->append(new Response(201, [], '{"status": "ok"}')); /** @var StatsAnrService $statsAnrService */ $statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class); @@ -136,7 +136,7 @@ class StatsApiServiceTest extends AbstractIntegrationTestCase $this->assertCount(\count($anrIdsToGenerateTheStats), $anrUuid); $this->mockHandler->append(new Response(200, [], $this->getStatsResponse())); - $this->mockHandler->append(new Response(200, [], '{"status": "ok"}')); + $this->mockHandler->append(new Response(201, [], '{"status": "ok"}')); /** @var StatsAnrService $statsAnrService */ $statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class);