public function testDeleteWineNoWine() { $wine_infor = Wine::destroy(1); $wine = Wine::where('wine_id', 1)->first(); $response = $this->action('delete', 'WineController@destroy', array('wine_id' => 1)); $this->assertEquals(array("code" => ApiResponse::UNAVAILABLE_WINE, "data" => ApiResponse::getErrorContent(ApiResponse::UNAVAILABLE_WINE)), json_decode($response->getContent(), true)); }