function test_Update() { //Arrange $id = null; $cuisine_type = "Itilian"; $test_cuisine_type = new Cuisine($id, $cuisine_type); $test_cuisine_type->save(); $new_cuisine_type = "Italian"; //Act $test_cuisine_type->update($new_cuisine_type); //Assert $this->assertEquals("Italian", $test_cuisine_type->getCuisineType()); }
function testUpdate() { //Arrange $type = "french"; $id = null; $test_cuisine = new Cuisine($type, $id); $test_cuisine->save(); $new_type = "mexican"; //Act $test_cuisine->update($new_type); //Assert $this->assertEquals("mexican", $test_cuisine->getCuisineType()); }