-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wanghaojie
committed
Jun 17, 2024
1 parent
14a1b24
commit 0d9d31d
Showing
5 changed files
with
156 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Yansongda\Pay\Tests\Shortcut\Epay; | ||
|
||
use Yansongda\Artful\Plugin\ParserPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddPayloadSignPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddRadarPlugin; | ||
use Yansongda\Pay\Plugin\Epay\Pay\Scan\CancelPlugin; | ||
use Yansongda\Pay\Plugin\Epay\ResponsePlugin; | ||
use Yansongda\Pay\Plugin\Epay\StartPlugin; | ||
use Yansongda\Pay\Plugin\Epay\VerifySignaturePlugin; | ||
use Yansongda\Pay\Shortcut\Epay\CancelShortcut; | ||
use Yansongda\Pay\Tests\TestCase; | ||
|
||
class CancelShortcutTest extends TestCase | ||
{ | ||
|
||
protected CancelShortcut $plugin; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->plugin = new CancelShortcut(); | ||
} | ||
|
||
|
||
public function testDefault() | ||
{ | ||
self::assertEquals([ | ||
StartPlugin::class, | ||
CancelPlugin::class, | ||
AddPayloadSignPlugin::class, | ||
AddRadarPlugin::class, | ||
VerifySignaturePlugin::class, | ||
ResponsePlugin::class, | ||
ParserPlugin::class, | ||
], $this->plugin->getPlugins([])); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace Yansongda\Pay\Tests\Shortcut\Epay; | ||
|
||
use Yansongda\Artful\Plugin\ParserPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddPayloadSignPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddRadarPlugin; | ||
use Yansongda\Pay\Plugin\Epay\Pay\Scan\QueryPlugin; | ||
use Yansongda\Pay\Plugin\Epay\ResponsePlugin; | ||
use Yansongda\Pay\Plugin\Epay\StartPlugin; | ||
use Yansongda\Pay\Plugin\Epay\VerifySignaturePlugin; | ||
use Yansongda\Pay\Shortcut\Epay\QueryShortcut; | ||
use Yansongda\Pay\Tests\TestCase; | ||
|
||
class QueryShortcutTest extends TestCase | ||
{ | ||
|
||
protected QueryShortcut $plugin; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->plugin = new QueryShortcut(); | ||
} | ||
|
||
public function testDefault() | ||
{ | ||
self::assertEquals([ | ||
StartPlugin::class, | ||
QueryPlugin::class, | ||
AddPayloadSignPlugin::class, | ||
AddRadarPlugin::class, | ||
VerifySignaturePlugin::class, | ||
ResponsePlugin::class, | ||
ParserPlugin::class, | ||
], $this->plugin->getPlugins([])); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Yansongda\Pay\Tests\Shortcut\Epay; | ||
|
||
use Yansongda\Artful\Plugin\ParserPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddPayloadSignPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddRadarPlugin; | ||
use Yansongda\Pay\Plugin\Epay\Pay\Scan\RefundPlugin; | ||
use Yansongda\Pay\Plugin\Epay\ResponsePlugin; | ||
use Yansongda\Pay\Plugin\Epay\StartPlugin; | ||
use Yansongda\Pay\Plugin\Epay\VerifySignaturePlugin; | ||
use Yansongda\Pay\Shortcut\Epay\RefundShortcut; | ||
use Yansongda\Pay\Tests\TestCase; | ||
|
||
class RefundShortcutTest extends TestCase | ||
{ | ||
protected RefundShortcut $plugin; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->plugin = new RefundShortcut(); | ||
} | ||
|
||
public function testDefault() | ||
{ | ||
self::assertEquals([ | ||
StartPlugin::class, | ||
RefundPlugin::class, | ||
AddPayloadSignPlugin::class, | ||
AddRadarPlugin::class, | ||
VerifySignaturePlugin::class, | ||
ResponsePlugin::class, | ||
ParserPlugin::class, | ||
], $this->plugin->getPlugins([])); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Yansongda\Pay\Tests\Shortcut\Epay; | ||
|
||
use Yansongda\Artful\Plugin\ParserPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddPayloadSignPlugin; | ||
use Yansongda\Pay\Plugin\Epay\AddRadarPlugin; | ||
use Yansongda\Pay\Plugin\Epay\Pay\Scan\PrepayPlugin; | ||
use Yansongda\Pay\Plugin\Epay\ResponsePlugin; | ||
use Yansongda\Pay\Plugin\Epay\StartPlugin; | ||
use Yansongda\Pay\Plugin\Epay\VerifySignaturePlugin; | ||
use Yansongda\Pay\Shortcut\Epay\ScanShortcut; | ||
use Yansongda\Pay\Tests\TestCase; | ||
|
||
class ScanShortcutTest extends TestCase | ||
{ | ||
protected ScanShortcut $plugin; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->plugin = new ScanShortcut(); | ||
} | ||
|
||
public function testDefault() | ||
{ | ||
self::assertEquals([ | ||
StartPlugin::class, | ||
PrepayPlugin::class, | ||
AddPayloadSignPlugin::class, | ||
AddRadarPlugin::class, | ||
VerifySignaturePlugin::class, | ||
ResponsePlugin::class, | ||
ParserPlugin::class, | ||
], $this->plugin->getPlugins([])); | ||
} | ||
} |