12345678910111213141516171819202122 |
- <?php
- namespace Tests\ContentManage\Http\Controllers;
- use Illuminate\Foundation\Testing\RefreshDatabase;
- use Illuminate\Foundation\Testing\WithFaker;
- use Illuminate\Support\Facades\Storage;
- use Illuminate\Http\UploadedFile;
- use Tests\TestCase;
- // php artisan test --testsuite=ContentOutputBook
- class CpListControllerTest extends TestCase{
- public function test_cpP_collection(){
- $response = $this->getJson("api/contentManage/cp/cpCollection?cp_id=1&cp_name=Testcp01111");
- print_r(json_decode($response->getContent(),1));
- $response->assertStatus(200);
- }
- }
|