Skip to content

Commit

Permalink
Fix tests for new gateways (#258)
Browse files Browse the repository at this point in the history
* Fix tests for new gateways

* Rector Rectify

* Fix default config

* Fix default config

Co-authored-by: zingimmick <[email protected]>
  • Loading branch information
zingimmick and zingimmick authored Dec 8, 2022
1 parent 17a1b53 commit 1e817bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
name: Require packages for PHP 8.1
run: composer require orchestra/testbench:^6.23 ramsey/collection:^1.2 --no-update

- if: matrix.php == '8.2'
name: Require packages for PHP 8.2
run: composer require orchestra/testbench:^6.23 ramsey/collection:^1.2 nesbot/carbon:^2.62.1 --no-update

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
Expand Down
16 changes: 16 additions & 0 deletions config/sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
'driver' => Overtrue\EasySms\Gateways\QcloudGateway::class,
'secret_id' => env('SMS_QCOULD_SECRET_ID'),
'secret_key' => env('SMS_QCOULD_SECRET_KEY'),
'region' => env('SMS_QCOULD_REGION', 'ap-guangzhou'),
'sdk_app_id' => env('SMS_QCOULD_SDK_APP_ID'),
'sign_name' => env('SMS_QCOULD_SIGN_NAME', ''),
],
Expand Down Expand Up @@ -173,6 +174,12 @@
'token' => env('SMS_TINIYO_TOKEN'),
'from' => env('SMS_TINIYO_FROM'),
],
'tinree' => [
'driver' => \Overtrue\EasySms\Gateways\TinreeGateway::class,
'accesskey' => env('SMS_TINREE_ACCESSKEY'),
'secret' => env('SMS_TINREE_SECRET'),
'sign' => env('SMS_TINREE_SIGN'),
],
'twilio' => [
'driver' => Overtrue\EasySms\Gateways\TwilioGateway::class,
'account_sid' => env('SMS_TWILIO_ACCOUNT_SID'),
Expand All @@ -191,6 +198,15 @@
'username' => env('SMS_UE35_USERNAME'),
'userpwd' => env('SMS_UE35_USERPWD'),
],
'volcengine' => [
'driver' => \Overtrue\EasySms\Gateways\VolcengineGateway::class,
'access_key_id' => env('SMS_VOLCENGINE_ACCESS_KEY_ID'),
'access_key_secret' => env('SMS_VOLCENGINE_ACCESS_KEY_SECRET'),
'region_id' => env('SMS_VOLCENGINE_REGION_ID', 'cn-north-1'),
'sms_account' => env('SMS_VOLCENGINE_SMS_ACCOUNT'),
'sign_name' => env('SMS_VOLCENGINE_SIGN_NAME'),
'timeout' => env('SMS_VOLCENGINE_TIMEOUT', 5),
],
'yuntongxun' => [
'driver' => Overtrue\EasySms\Gateways\YuntongxunGateway::class,
'debug' => env('SMS_YUNTONGXUN_DEBUG'),
Expand Down

0 comments on commit 1e817bd

Please sign in to comment.