MiniAppTest.php 586 B

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