Exemple #1
0
 function test_getAllClients()
 {
     //Arrange
     $stylist_name = "Donna";
     $id = null;
     $test_stylist = new Stylist($stylist_name, $id);
     $test_stylist->save();
     $client_name = "Robin";
     $stylist_id = $test_stylist->getId();
     $test_client = new Client($client_name, $stylist_id);
     $test_client->save();
     $client_name2 = "Darla";
     $test_client2 = new Client($client_name2, $stylist_id);
     $test_client2->save();
     //Act
     $result = $test_stylist->getAllClients();
     //Assert
     $this->assertEquals([$test_client, $test_client2], $result);
 }