Skip to content

Commit

Permalink
修正名称
Browse files Browse the repository at this point in the history
  • Loading branch information
888hou committed Apr 11, 2024
1 parent 44c5efd commit 03b5235
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ $easySms->send(18888888888, [
短信内容使用 `template` + `data`

```php
'YiDongMasBlack' => [
'yidongmasblack' => [
'ecName' => '', // 机构名称
'secretKey' => '', // 密钥
'apId' => '', // 应用ID
Expand Down
4 changes: 2 additions & 2 deletions src/Gateways/YiDongMasBlackGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
use Overtrue\EasySms\Traits\HasHttpRequest;

/**
* Class YiDongMasBlackGateway.
* Class YidongmasblackGateway.
* 移动MAS黑名单模式(免创建模板)
* @author houang <[email protected]>
*
* @see https://mas.10086.cn
*/
class YiDongMasBlackGateway extends Gateway
class YidongmasblackGateway extends Gateway
{
use HasHttpRequest;

Expand Down
8 changes: 4 additions & 4 deletions tests/Gateways/YiDongMasBlackGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
namespace Overtrue\EasySms\Tests\Gateways;

use Overtrue\EasySms\Exceptions\GatewayErrorException;
use Overtrue\EasySms\Gateways\YiDongMasBlackGateway;
use Overtrue\EasySms\Gateways\YidongmasblackGateway;
use Overtrue\EasySms\Message;
use Overtrue\EasySms\PhoneNumber;
use Overtrue\EasySms\Support\Config;
use Overtrue\EasySms\Tests\TestCase;

class YiDongMasBlackGatewayTest extends TestCase
class YidongmasblackGatewayTest extends TestCase
{
public function testSend()
{
Expand All @@ -29,7 +29,7 @@ public function testSend()
'sign' => 'mock-sign',
'addSerial' => 'mock-add-serial',
];
$gateway = \Mockery::mock(YiDongMasBlackGateway::class.'[get]', [$config])->shouldAllowMockingProtectedMethods();
$gateway = \Mockery::mock(YidongmasblackGateway::class.'[get]', [$config])->shouldAllowMockingProtectedMethods();

$expected = [
'RegionId' => 'cn-hangzhou',
Expand All @@ -47,7 +47,7 @@ public function testSend()
'TemplateParam' => json_encode(['code' => '123456']),
];
$gateway->shouldReceive('post')
->with(YiDongMasBlackGateway::ENDPOINT_URL, \Mockery::on(function ($params) use ($expected) {
->with(YidongmasblackGateway::ENDPOINT_URL, \Mockery::on(function ($params) use ($expected) {
if (empty($params['Signature'])) {
return false;
}
Expand Down

0 comments on commit 03b5235

Please sign in to comment.