1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?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 test_index(): void
- {
- $name = '亿';
- $response = $this->getJson('/api/channel/paytemplate/optionSequence');
-
- echo $response->getContent();
- $response->dd();
- }
- }
|