MiniprogramTest.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Tests\Feature;
  3. use Illuminate\Foundation\Testing\RefreshDatabase;
  4. use Illuminate\Foundation\Testing\WithFaker;
  5. use Tests\TestCase;
  6. class MiniprogramTest extends TestCase
  7. {
  8. /**
  9. * A basic feature test example.
  10. */
  11. public function ttest_example(): void
  12. {
  13. $response = $this->getJson('/api/manage/miniprogram/typelist');
  14. $response->dd();
  15. }
  16. public function test_store(): void
  17. {
  18. $response = $this->postJson('/api/manage/miniprogram/update/13',[
  19. 'name'=>'三个十千短剧',
  20. 'company'=>'三个三集团',
  21. 'play_name'=>'三个十千短剧',
  22. 'type'=>1,
  23. 'appid'=>'wxts5415641fgtjhuswsae13',
  24. 'appsecret'=>'2f659djhsjsfa256b5523ta1shqa3d313',
  25. 'status'=>1,
  26. 'remark'=>''
  27. ]);
  28. $response->dd();
  29. }
  30. public function ttest_index(): void
  31. {
  32. $response = $this->getJson('/api/manage/miniprogram/index');
  33. $response->dd();
  34. }
  35. }