Skip to content

Commit

Permalink
Use case insensitive account-id
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 23, 2017
1 parent ae5a085 commit bd39685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MatejTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MatejTest extends TestCase
/** @test */
public function shouldBeInstantiable(): void
{
$matej = new Matej('accountId', 'apiKey');
$matej = new Matej('account-id', 'apiKey');
$this->assertInstanceOf(Matej::class, $matej);
}

Expand All @@ -26,7 +26,7 @@ public function shouldExecuteRequestViaBuilder(): void
$mockClient = new Client();
$mockClient->addResponse($dummyHttpResponse);

$matej = new Matej('accountId', 'apiKey');
$matej = new Matej('account-id', 'apiKey');
$matej->setHttpClient($mockClient);

$response = $matej->request()
Expand All @@ -36,7 +36,7 @@ public function shouldExecuteRequestViaBuilder(): void

$this->assertCount(1, $mockClient->getRequests());
$this->assertStringStartsWith(
'https://accountid.matej.lmc.cz/',
'https://account-id.matej.lmc.cz/',
$mockClient->getRequests()[0]->getUri()->__toString()
);

Expand Down

0 comments on commit bd39685

Please sign in to comment.