Ejemplo n.º 1
0
 function test_deleteCuisineRestaurants()
 {
     $type = "Mexican";
     $id = null;
     $test_Cuisine = new Cuisine($type, $id);
     $test_Cuisine->save();
     $name = "Por Que No";
     $phone = "555-555-5555";
     $address = "123 ABC street";
     $website = "http://www.porqueno.com";
     $cuisine_id = $test_Cuisine->getId();
     $test_Restaurant = new Restaurant($name, $id, $phone, $address, $website, $cuisine_id);
     $test_Restaurant->save();
     $test_Cuisine->delete_cuisine();
     $this->assertEquals([], Restaurant::getAll());
 }