From 98cad233d9ec7bac7596ff53b8ab1f7e892c1aa2 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sun, 1 Oct 2017 18:20:58 +0200 Subject: [PATCH] Minor refactoring --- tests/Service/ParticipantServiceTest.php | 2 +- tests/Service/SurveyServiceTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Service/ParticipantServiceTest.php b/tests/Service/ParticipantServiceTest.php index 13bde6c..6d81f5f 100644 --- a/tests/Service/ParticipantServiceTest.php +++ b/tests/Service/ParticipantServiceTest.php @@ -64,7 +64,7 @@ class ParticipantServiceTest extends BaseTestCase static::assertInstanceOf(Client::class, $this->serviceWithoutParticipants->getClient()); static::assertInstanceOf(Client::class, $this->serviceWithParticipants->getClient()); - $connectionConfiguration = new ConnectionConfiguration('http://test.com', 'test', 'test'); + $connectionConfiguration = $this->getConnectionConfiguration(); $client = new Client($connectionConfiguration); $participantService = new ParticipantService($client); diff --git a/tests/Service/SurveyServiceTest.php b/tests/Service/SurveyServiceTest.php index 2f62b2a..e3517b8 100644 --- a/tests/Service/SurveyServiceTest.php +++ b/tests/Service/SurveyServiceTest.php @@ -62,7 +62,7 @@ class SurveyServiceTest extends BaseTestCase static::assertInstanceOf(Client::class, $this->serviceWithoutSurveys->getClient()); static::assertInstanceOf(Client::class, $this->serviceWithSurveys->getClient()); - $connectionConfiguration = new ConnectionConfiguration('http://test.com', 'test', 'test'); + $connectionConfiguration = $this->getConnectionConfiguration(); $client = new Client($connectionConfiguration); $surveyService = new SurveyService($client);