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