Beispiel #1
0
 function testDeleteClientTasks()
 {
     //Arrange
     $stylist_name = "Allison";
     $id = null;
     $test_stylist = new Stylist($stylist_name, $id);
     $test_stylist->save();
     $client_name = "Paco";
     $stylist_id = $test_stylist->getId();
     $test_client = new Client($client_name, $id, $stylist_id);
     $test_client->save();
     //Act
     $test_stylist->deleteOne();
     //Assert
     $this->assertEquals([], Client::getAll());
 }