diff --git a/tests/Gateways/ChuanglanGatewayTest.php b/tests/Gateways/ChuanglanGatewayTest.php index 7b42b42..e0b136a 100644 --- a/tests/Gateways/ChuanglanGatewayTest.php +++ b/tests/Gateways/ChuanglanGatewayTest.php @@ -145,13 +145,13 @@ public function testBuildEndpoint() $config = ['channel' => ChuanglanGateway::CHANNEL_VALIDATE_CODE]; $config = new Config($config); $endpoint = 'https://smsbj1.253.com/msg/send/json'; - $this->assertSame($endpoint, $method->invoke($gateway, $config)); + $this->assertSame($endpoint, $method->invoke($gateway, $config, 86)); // 营销通道 $config = ['channel' => ChuanglanGateway::CHANNEL_PROMOTION_CODE]; $config = new Config($config); $endpoint = 'https://smssh1.253.com/msg/send/json'; - $this->assertSame($endpoint, $method->invoke($gateway, $config)); + $this->assertSame($endpoint, $method->invoke($gateway, $config, 86)); } /** @@ -168,12 +168,12 @@ public function testGetChannel() // 验证码通道 $config = ['channel' => ChuanglanGateway::CHANNEL_VALIDATE_CODE]; $config = new Config($config); - $this->assertSame(ChuanglanGateway::CHANNEL_VALIDATE_CODE, $method->invoke($gateway, $config)); + $this->assertSame(ChuanglanGateway::CHANNEL_VALIDATE_CODE, $method->invoke($gateway, $config, 86)); // 营销通道 $config = ['channel' => ChuanglanGateway::CHANNEL_PROMOTION_CODE]; $config = new Config($config); - $this->assertSame(ChuanglanGateway::CHANNEL_PROMOTION_CODE, $method->invoke($gateway, $config)); + $this->assertSame(ChuanglanGateway::CHANNEL_PROMOTION_CODE, $method->invoke($gateway, $config, 86)); } /** @@ -192,7 +192,7 @@ public function testGetChannelException() $this->expectExceptionMessage('Invalid channel for ChuanglanGateway.'); $config = ['channel' => 'error']; $config = new Config($config); - $method->invoke($gateway, $config); + $method->invoke($gateway, $config, 86); } /** @@ -211,7 +211,7 @@ public function testValidateCodeChannelWrapChannelContent() // 验证码通道 $config = ['channel' => ChuanglanGateway::CHANNEL_VALIDATE_CODE]; $config = new Config($config); - $this->assertSame('这是短信内容。', $method->invoke($gateway, $content, $config)); + $this->assertSame('这是短信内容。', $method->invoke($gateway, $content, $config, 86)); } /** @@ -234,7 +234,7 @@ public function testPromotionChannelWrapChannelContent() 'unsubscribe' => '回TD退订', ]; $config = new Config($config); - $this->assertSame('【通讯云】这是短信内容。回TD退订', $method->invoke($gateway, $content, $config)); + $this->assertSame('【通讯云】这是短信内容。回TD退订', $method->invoke($gateway, $content, $config, 86)); } /** @@ -259,7 +259,7 @@ public function testPromotionChannelWrapChannelContentWithoutSign() 'unsubscribe' => '回TD退订', ]; $config = new Config($config); - $method->invoke($gateway, $content, $config); + $method->invoke($gateway, $content, $config, 86); } /** @@ -284,6 +284,6 @@ public function testPromotionChannelWrapChannelContentWithoutUnsubscribe() 'unsubscribe' => '', ]; $config = new Config($config); - $method->invoke($gateway, $content, $config); + $method->invoke($gateway, $content, $config, 86); } }