getJson($this->prefix.'booklist?'.$this->query); print_r(json_decode($response->getContent(),1)); $response->assertStatus(200); } public function test_book_detail() { $response = $this->getJson($this->prefix.'bookdetail/1?'.$this->query); print_r(json_decode($response->getContent(),1)); $response->assertStatus(200); } public function test_chapter_list() { $response = $this->getJson($this->prefix.'chapterlist/1?'.$this->query); //print_r(json_decode($response->getContent(),1)); $response->assertStatus(200); } public function test_chapter_content() { $response = $this->getJson($this->prefix.'chaptercontent/1/chapterid/1?'.$this->query); print_r(json_decode($response->getContent(),1)); $response->assertStatus(200)->assertJsonPath('code', 10000); } public function test_categories() { $response = $this->getJson($this->prefix.'listCategories?'.$this->query); print_r(json_decode($response->getContent(),1)); $response->assertStatus(200)->assertJsonPath('code', 10000); } }