Skip to content

Commit

Permalink
Update test based on latest endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aneip committed Jun 24, 2021
1 parent bdac8d9 commit 7616e9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function it_can_make_a_client()

$this->assertEquals('foo', $client->getApiUsername());
$this->assertEquals('bar', $client->getApiPassword());
$this->assertEquals('https://api.silverstreet.com', $client->getApiEndpoint());
$this->assertEquals('https://ic1.silverstreet.com', $client->getApiEndpoint());
$this->assertEquals('v1', $client->getApiVersion());
}
}
2 changes: 1 addition & 1 deletion tests/One/CreditTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function it_can_check_available_balance()

$faker = Faker::create()
->send('POST', [], 'username=foo&password=bar')
->expectEndpointIs('https://api.silverstreet.com/creditcheck.php')
->expectEndpointIs('https://ic1.silverstreet.com/creditcheck.php')
->shouldResponseWith(200, '<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="creditcheck.xsl"?>
<credits>
Expand Down
2 changes: 1 addition & 1 deletion tests/One/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function it_can_send_message()

$faker = Faker::create()
->stream('POST', m::type('Array'))
->expectEndpointIs('https://api.silverstreet.com/send.php')
->expectEndpointIs('https://ic1.silverstreet.com/send.php')
->shouldResponseWith(200, '1');

$client = new Client($faker->http(), $body['username'], $body['password']);
Expand Down

0 comments on commit 7616e9e

Please sign in to comment.