fix(service): make api endpoints configurable
This commit is contained in:
@@ -55,7 +55,7 @@ qui aperiam non debitis possimus qui neque nisi nulla"
|
||||
|
||||
$response = new JsonMockResponse(self::API_POSTS_LIST);
|
||||
$mockedClient = new MockHttpClient($response);
|
||||
$briloApiPosts = new BriloApiPosts($mockedClient, $this->getLogger(), $serializer);
|
||||
$briloApiPosts = new BriloApiPosts($mockedClient, $this->getLogger(), $serializer, 'http://nonexistent.local');
|
||||
$this->assertEquals($testUserList, $briloApiPosts->getPosts());
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ qui aperiam non debitis possimus qui neque nisi nulla"
|
||||
return $response;
|
||||
});
|
||||
$this->expectException(BriloRemoteApiException::class);
|
||||
$briloApiPosts = new BriloApiPosts($mockedClient, $this->getLogger(), $serializer);
|
||||
$briloApiPosts = new BriloApiPosts($mockedClient, $this->getLogger(), $serializer, 'http://nonexistent.local');
|
||||
$briloApiPosts->getPosts();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user