123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace Tests\Feature;
- use Illuminate\Foundation\Testing\RefreshDatabase;
- use Illuminate\Foundation\Testing\WithFaker;
- use Tests\TestCase;
- class MiniprogramTest extends TestCase
- {
- /**
- * php artisan test --testsuite=Feature
- * A basic feature test example.
- */
- public function ttest_example(): void
- {
- $response = $this->getJson('/api/manage/miniprogram/allocation/13');
- //$response = $this->getJson('/api/manage/miniprogram/index');
- echo $response->getContent();
- }
- public function test_store(): void
- {
- $response = $this->postJson('/api/manage/miniprogram/update/13',[
- 'name'=>'好看看短剧',
- 'company'=>'三个三集团',
- 'play_name'=>'三个十千短剧',
- 'type'=>1,
- 'appid'=>'wxts5415641fgtjc43twearhygesrthgysedhgyed',
- 'appsecret'=>'2f659djhsjsfa256b5523ta1shqa3d313',
- 'status'=>1,
- 'remark'=>''
- ]);
- echo $response->getContent();
- $response->dd();
- }
- public function ttest_allocation(): void
- {
- $response = $this->postJson('/api/manage/miniprogram/allocation/17',[
- 'uids'=>'2,5',
- 'action'=>'on'
- ]);
- $response->dd();
- }
- public function ttest_index(): void
- {
- $name = '亿';
- $response = $this->getJson('/api/manage/miniprogram/index?name='.$name);
- $response->dd();
- }
- }
|