pay/tests/Plugin/Alipay/GeneralPayPluginTest.php
2021-07-17 15:37:43 +08:00

24 lines
560 B
PHP

<?php
namespace Yansongda\Pay\Tests\Plugin\Alipay;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\Stubs\Plugin\AlipayGeneralPluginStub;
use Yansongda\Pay\Tests\TestCase;
class GeneralPayPluginTest extends TestCase
{
public function testNormal()
{
$rocket = new Rocket();
$rocket->setParams([]);
$plugin = new AlipayGeneralPluginStub();
$result = $plugin->assembly($rocket, function ($rocket) { return $rocket; });
self::assertStringContainsString('yansongda', $result->getPayload()->toJson());
}
}