CpListControllerTest.php 595 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Tests\ContentManage\Http\Controllers;
  3. use Illuminate\Foundation\Testing\RefreshDatabase;
  4. use Illuminate\Foundation\Testing\WithFaker;
  5. use Illuminate\Support\Facades\Storage;
  6. use Illuminate\Http\UploadedFile;
  7. use Tests\TestCase;
  8. // php artisan test --testsuite=ContentOutputBook
  9. class CpListControllerTest extends TestCase{
  10. public function test_cpP_collection(){
  11. $response = $this->getJson("api/contentManage/cp/cpCollection?cp_id=1&cp_name=Testcp01111");
  12. print_r(json_decode($response->getContent(),1));
  13. $response->assertStatus(200);
  14. }
  15. }