public function testDeleteWishlistErrorNoWishlist() { $wishlist = Wishlist::destroy(1); $response = $this->action('delete', 'WishlistController@destroy', array('wine_unique_id' => "1_2009")); $this->assertEquals(array("code" => ApiResponse::NOT_EXISTED_WINE_WISHLIST, "data" => ApiResponse::getErrorContent(ApiResponse::NOT_EXISTED_WINE_WISHLIST)), json_decode($response->getContent(), true)); }