pay/tests/Plugin/Alipay/GeneralPayPluginTest.php

24 lines
560 B
PHP
Raw Normal View History

2021-06-07 23:12:02 +08:00
<?php
namespace Yansongda\Pay\Tests\Plugin\Alipay;
use Yansongda\Pay\Rocket;
2021-07-05 22:40:29 +08:00
use Yansongda\Pay\Tests\Stubs\Plugin\AlipayGeneralPluginStub;
2021-07-17 15:37:43 +08:00
use Yansongda\Pay\Tests\TestCase;
2021-06-07 23:12:02 +08:00
class GeneralPayPluginTest extends TestCase
{
public function testNormal()
{
$rocket = new Rocket();
$rocket->setParams([]);
2021-07-05 22:40:29 +08:00
$plugin = new AlipayGeneralPluginStub();
2021-06-07 23:12:02 +08:00
$result = $plugin->assembly($rocket, function ($rocket) { return $rocket; });
self::assertStringContainsString('yansongda', $result->getPayload()->toJson());
}
}