Chnaged the test response codes to 201.

pull/316/head
Ruslan Baidan 2020-06-02 16:29:55 +02:00
parent b1759e405a
commit bcecdd8eb6
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class StatsApiServiceTest extends AbstractIntegrationTestCase
} }
$this->mockHandler->append(new Response(200, [], $this->getStatsResponse())); $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 */ /** @var StatsAnrService $statsAnrService */
$statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class); $statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class);
@ -136,7 +136,7 @@ class StatsApiServiceTest extends AbstractIntegrationTestCase
$this->assertCount(\count($anrIdsToGenerateTheStats), $anrUuid); $this->assertCount(\count($anrIdsToGenerateTheStats), $anrUuid);
$this->mockHandler->append(new Response(200, [], $this->getStatsResponse())); $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 */ /** @var StatsAnrService $statsAnrService */
$statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class); $statsAnrService = $this->getApplicationServiceLocator()->get(StatsAnrService::class);