WechatPayBuilderTest.php 664 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\WechatPay;
  4. use PHPUnit\Framework\TestCase;
  5. use SixShop\WechatPay\Trait\MiniAppTrait;
  6. use WeChatPay\BuilderChainable;
  7. class WechatPayBuilderTest extends TestCase
  8. {
  9. use MiniAppTrait;
  10. public function testCreate()
  11. {
  12. $result = \SixShop\WechatPay\Facade\WechatPayBuilder::getBuilderChainable();
  13. $this->assertInstanceOf(BuilderChainable::class, $result);
  14. }
  15. public function testOpSpecialOrder()
  16. {
  17. $this->expectException(\InvalidArgumentException::class);
  18. $this->expectExceptionCode(268546002);
  19. $result = $this->opSpecialOrder('errororderid', 2);
  20. }
  21. }