|
@@ -12,7 +12,7 @@ class MiniprogramTest extends TestCase
|
|
* php artisan test --testsuite=Feature
|
|
* php artisan test --testsuite=Feature
|
|
* A basic feature test example.
|
|
* A basic feature test example.
|
|
*/
|
|
*/
|
|
- public function test_example(): void
|
|
|
|
|
|
+ public function ttest_example(): void
|
|
{
|
|
{
|
|
$response = $this->getJson('/api/manage/miniprogram/allocation/13');
|
|
$response = $this->getJson('/api/manage/miniprogram/allocation/13');
|
|
//$response = $this->getJson('/api/manage/miniprogram/index');
|
|
//$response = $this->getJson('/api/manage/miniprogram/index');
|
|
@@ -24,7 +24,7 @@ class MiniprogramTest extends TestCase
|
|
public function ttest_store(): void
|
|
public function ttest_store(): void
|
|
{
|
|
{
|
|
$response = $this->postJson('/api/manage/miniprogram/update/13',[
|
|
$response = $this->postJson('/api/manage/miniprogram/update/13',[
|
|
- 'name'=>'三个十千短剧',
|
|
|
|
|
|
+ 'name'=>'好看看短剧',
|
|
'company'=>'三个三集团',
|
|
'company'=>'三个三集团',
|
|
'play_name'=>'三个十千短剧',
|
|
'play_name'=>'三个十千短剧',
|
|
'type'=>1,
|
|
'type'=>1,
|
|
@@ -40,8 +40,9 @@ class MiniprogramTest extends TestCase
|
|
|
|
|
|
public function test_allocation(): void
|
|
public function test_allocation(): void
|
|
{
|
|
{
|
|
- $response = $this->postJson('/api/manage/miniprogram/allocation/13',[
|
|
|
|
- 'uids'=>'5,6,7'
|
|
|
|
|
|
+ $response = $this->postJson('/api/manage/miniprogram/allocation/17',[
|
|
|
|
+ 'uids'=>'2,5',
|
|
|
|
+ 'action'=>'on'
|
|
]);
|
|
]);
|
|
|
|
|
|
$response->dd();
|
|
$response->dd();
|