MiniAppTest.php 521 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Wechat\Service;
  4. use PHPUnit\Framework\TestCase;
  5. class MiniAppTest extends TestCase
  6. {
  7. private MiniApp $miniApp;
  8. protected function setUp(): void
  9. {
  10. $this->miniApp = app(MiniApp::class);
  11. }
  12. public function test()
  13. {
  14. $response = $this->miniApp->getClient()->postJson('/wxa/getwxacodeunlimit', [
  15. 'scene' => 'invite_code=' . 1234,
  16. 'check_path' => false,
  17. 'env_version' => 'develop'
  18. ]);
  19. }
  20. }