|
@@ -1,24 +1,27 @@
|
|
|
<?php
|
|
<?php
|
|
|
declare(strict_types=1);
|
|
declare(strict_types=1);
|
|
|
|
|
+
|
|
|
namespace SixShop\Wechat\Service;
|
|
namespace SixShop\Wechat\Service;
|
|
|
|
|
|
|
|
|
|
+use PHPUnit\Framework\Attributes\Test;
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
class MiniAppTest extends TestCase
|
|
class MiniAppTest extends TestCase
|
|
|
{
|
|
{
|
|
|
private MiniApp $miniApp;
|
|
private MiniApp $miniApp;
|
|
|
|
|
+
|
|
|
protected function setUp(): void
|
|
protected function setUp(): void
|
|
|
{
|
|
{
|
|
|
$this->miniApp = app(MiniApp::class);
|
|
$this->miniApp = app(MiniApp::class);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function test()
|
|
|
|
|
|
|
+ #[Test]
|
|
|
|
|
+ public function getwxacodeunlimit()
|
|
|
{
|
|
{
|
|
|
$response = $this->miniApp->getClient()->postJson('/wxa/getwxacodeunlimit', [
|
|
$response = $this->miniApp->getClient()->postJson('/wxa/getwxacodeunlimit', [
|
|
|
'scene' => 'invite_code=' . 1234,
|
|
'scene' => 'invite_code=' . 1234,
|
|
|
'check_path' => false,
|
|
'check_path' => false,
|
|
|
'env_version' => 'develop'
|
|
'env_version' => 'develop'
|
|
|
]);
|
|
]);
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|