Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Sep 1, 2019
1 parent cc4f814 commit d6997b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/PayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use Yansongda\Pay\Contracts\GatewayApplicationInterface;
use Yansongda\Pay\Exceptions\InvalidGatewayException;
use Yansongda\Pay\Gateways\Alipay;
use Yansongda\Pay\Gateways\Wechat;
use Yansongda\Pay\Pay;

class PayTest extends TestCase
Expand All @@ -12,13 +14,15 @@ public function testAlipayGateway()
{
$alipay = Pay::alipay(['foo' => 'bar']);

$this->assertInstanceOf(Alipay::class, $alipay);
$this->assertInstanceOf(GatewayApplicationInterface::class, $alipay);
}

public function testWechatGateway()
{
$wechat = Pay::wechat(['foo' => 'bar']);

$this->assertInstanceOf(Wechat::class, $wechat);
$this->assertInstanceOf(GatewayApplicationInterface::class, $wechat);
}

Expand Down

0 comments on commit d6997b3

Please sign in to comment.