示例#1
0
 function test_getName()
 {
     $name = "Jane Doe";
     $test_stylist = new Stylist($name);
     $result = $test_stylist->getName();
     $this->assertEquals($name, $result);
 }
示例#2
0
 function testUpdate()
 {
     $name = "Bob";
     $test_stylist = new Stylist($name);
     $test_stylist->save();
     $new_name = "Stuart";
     $test_stylist->update($new_name);
     $this->assertEquals("Stuart", $test_stylist->getName());
 }
 function test_getName()
 {
     //Arrange
     $name = "Tessa";
     $test_Stylist = new Stylist($name);
     //Act
     $result = $test_Stylist->getName();
     //Assert
     $this->assertEquals($name, $result);
 }
示例#4
0
 function test_update()
 {
     $name = "Megan";
     $id = null;
     $test_stylist = new Stylist($name, $id);
     $test_stylist->save();
     $new_name = "Megan Clough";
     $test_stylist->update($new_name);
     $this->assertEquals("Megan Clough", $test_stylist->getName());
 }
示例#5
0
 function test_update()
 {
     $name = "Sally";
     $phone = "555-555-5555";
     $id = null;
     $test_stylist = new Stylist($name, $phone, $id);
     $test_stylist->save();
     $new_name = "Stella";
     $new_phone = "503-222-4445";
     $test_stylist->update($new_name, $new_phone);
     $this->assertEquals("Stella", $test_stylist->getName());
     $this->assertEquals("503-222-4445", $test_stylist->getPhone());
 }
示例#6
0
 function test_getName()
 {
     //Arrange
     $name = "Diane";
     $phone = "5033440878";
     $specialty = "Hair Loss";
     $weekends = true;
     $test_stylist = new Stylist($name, $phone, $specialty, $weekends);
     //Act
     $result = $test_stylist->getName();
     //Assert
     $this->assertEquals($name, $result);
 }
示例#7
0
 function testUpdate()
 {
     //Arrange
     $name = "Bob";
     $id = null;
     $test_stylist = new Stylist($name, $id);
     $test_stylist->save();
     $new_name = "Harry";
     //Act
     $test_stylist->update($new_name);
     //Assert
     $this->assertEquals("Harry", $test_stylist->getName());
 }
示例#8
0
 function test_update()
 {
     //Arrange
     $name = "Stephen";
     $id = null;
     $test_stylist = new Stylist($name, $id);
     $new_name = "Stephanie";
     //Act
     $test_stylist->update_stylist($new_name);
     //Assert
     $this->assertEquals($new_name, $test_stylist->getName());
 }
 function test_stylist_update()
 {
     //Arrange
     $name = "Vidal Sassoon";
     $test_stylist = new Stylist($name);
     $test_stylist->save();
     $new_name = "Vidal Baboon";
     //Act
     $test_stylist->update($new_name);
     //Assert
     $this->assertEquals($new_name, $test_stylist->getName());
 }
示例#10
0
 function test_update()
 {
     //Arrange
     $name = "Erin";
     $id = null;
     $test_stylist = new Stylist($name, $id);
     $test_stylist->save();
     $new_name = "Kyle";
     //Act
     $test_stylist->update($new_name);
     //Assert
     $this->assertEquals("Kyle", $test_stylist->getName());
 }
示例#11
0
 function test_stylist_update()
 {
     //Arrange
     $style = "Thai";
     $id = null;
     $test_stylist = new Stylist($style, $id);
     $test_stylist->save();
     $new_style = "Asian";
     //Act
     $test_stylist->update($new_style);
     //Assert
     $this->assertEquals("Asian", $test_stylist->getName());
 }