123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace Tests\Feature;
- use Illuminate\Foundation\Testing\RefreshDatabase;
- use Illuminate\Foundation\Testing\WithFaker;
- use Tests\TestCase;
- class MiniprogramTest extends TestCase
- {
-
- public function ttest_example(): void
- {
- $response = $this->getJson('/api/manage/miniprogram/allocation/13');
-
- echo $response->getContent();
- }
- public function ttest_store(): void
- {
-
- $response = $this->postJson('/api/channel/paytemplate/updatePayTemplateItem/31',[
- 'price'=>10,'type'=>'FIRST_COIN','given'=>1000,'is_default'=>1
- ]);
-
- 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/companylist');
- echo $response->getContent();
- $response->dd();
- }
- }
|