Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/Gateways/YunxinGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function test_send_with_send_code()
->andReturn('mock-params');

$gateway->shouldReceive('post')
->with('https://api.netease.im/sms/sendcode.action', 'mock-params', 'mock-headers')
->with('https://sms.yunxinapi.com/sms/sendcode.action', 'mock-params', 'mock-headers')
->andReturn([
'code' => 200,
'msg' => 5,
Expand Down Expand Up @@ -103,7 +103,7 @@ public function test_send_with_verify_code()
->andReturn('mock-params');

$gateway->shouldReceive('post')
->with('https://api.netease.im/sms/verifycode.action', 'mock-params', 'mock-headers')
->with('https://sms.yunxinapi.com/sms/verifycode.action', 'mock-params', 'mock-headers')
->andReturn([
'code' => 200,
], [
Expand Down Expand Up @@ -154,7 +154,7 @@ public function test_send_with_template_msg()
->andReturn('mock-params');

$gateway->shouldReceive('post')
->with('https://api.netease.im/sms/sendtemplate.action', 'mock-params', 'mock-headers')
->with('https://sms.yunxinapi.com/sms/sendtemplate.action', 'mock-params', 'mock-headers')
->andReturn([
'code' => 200,
'msg' => 5,
Expand Down Expand Up @@ -191,12 +191,12 @@ public function test_build_endpoint()
$gateway = \Mockery::mock(YunxinGateway::class, [$config])->shouldAllowMockingProtectedMethods();

$this->assertSame(
'https://api.netease.im/sms/sendcode.action',
'https://sms.yunxinapi.com/sms/sendcode.action',
$method->invoke($gateway, 'sms', 'sendCode')
);

$this->assertSame(
'https://api.netease.im/mock-resource/mock-function.action',
'https://sms.yunxinapi.com/mock-resource/mock-function.action',
$method->invoke($gateway, 'mock-resource', 'mock-function')
);
}
Expand Down