From 7616e9e8d5f9419cba8c699de6016b829cc8bc99 Mon Sep 17 00:00:00 2001 From: aneip Date: Thu, 24 Jun 2021 09:44:21 +0800 Subject: [PATCH] Update test based on latest endpoint --- tests/ClientTest.php | 2 +- tests/One/CreditTest.php | 2 +- tests/One/MessageTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 7c394d2..5476e6c 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -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()); } } diff --git a/tests/One/CreditTest.php b/tests/One/CreditTest.php index 1c5ad80..d8fe466 100644 --- a/tests/One/CreditTest.php +++ b/tests/One/CreditTest.php @@ -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, ' diff --git a/tests/One/MessageTest.php b/tests/One/MessageTest.php index 33b3a20..f111866 100644 --- a/tests/One/MessageTest.php +++ b/tests/One/MessageTest.php @@ -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']);