Beispiel #1
0
 public function testCreateWineSuccess()
 {
     $_params = $this->_params;
     $response = $this->_getAuth($_params);
     //get created login information
     $wine_infor = Wine::get(array('name', 'wine_unique_id', 'year', 'winery_id', 'average_price', 'average_rate', 'updated_at', 'created_at', 'wine_id'))->last();
     $this->assertNotNull($wine_infor);
     $this->assertEquals(array("code" => ApiResponse::OK, "data" => $wine_infor->toArray()), json_decode($response->getContent(), true));
 }