コード例 #1
0
 function test_updateCuisine()
 {
     //Arrange
     $type = "Italian";
     $id = null;
     $test_cuisine = new Cuisine($type, $id);
     $test_cuisine->save();
     $new_type = "Thai";
     //Act
     $test_cuisine->updateCuisine($new_type);
     $test_cuisine->save();
     //Assert
     $this->assertEquals($test_cuisine->getType(), "Thai");
 }