예제 #1
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());
 }
예제 #2
0
 function test_update()
 {
     $name = "Jane Doe";
     $test_stylist = new Stylist($name);
     $test_stylist->save();
     $name2 = "James Don";
     $test_stylist->update($name2);
     $result = Stylist::getAll();
     $this->assertEquals($name2, $result[0]->getName());
 }
예제 #3
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());
 }
예제 #4
0
 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());
 }
예제 #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 testUpdate()
 {
     //Arrange
     $id = null;
     $stylist_name = "Nico";
     $test_stylist = new Stylist($id, $stylist_name);
     $test_stylist->save();
     $new_stylist_name = "Tina";
     //Act
     $test_stylist->update($new_stylist_name);
     //Assert
     $result = $test_stylist->getStylistName();
     $this->assertEquals($new_stylist_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 testUpdate()
 {
     //Arrange
     $id = null;
     $name = "Kourtney";
     $test_stylist = new Stylist($id, $name);
     $test_stylist->save();
     $name2 = "Xavier";
     $test_stylist2 = new Stylist($id, $name2);
     $test_stylist2->save();
     //Act
     $test_stylist->update($new_name);
     //Assert
     $result = $test_stylist->getStylistName();
     $this->assertEquals($new_name, $result);
 }
예제 #9
0
 function testUpdate()
 {
     //Arrange
     $stylist_name = "Allison";
     $id = null;
     $test_stylist = new Stylist($stylist_name, $id);
     $test_stylist->save();
     $new_stylist_name = "Fey";
     //Act
     $test_stylist->update($new_stylist_name);
     //Assert
     $this->assertEquals($new_stylist_name, $test_stylist->getStylistName());
 }
예제 #10
0
 function test_update()
 {
     //Arrange
     $stylist_name = "Big Bird";
     $id = null;
     $test_stylist = new Stylist($stylist_name, $id);
     $test_stylist->save();
     $new_name = "Araya Stark";
     //Act
     $test_stylist->update($new_name);
     //Assert
     $this->assertEquals("Araya Stark", $test_stylist->getStylistName());
 }
예제 #11
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());
 }
예제 #12
0
 function testUpdate()
 {
     //Arrange
     $stylist_name = "Bilbo Baggins";
     $test_stylist = new Stylist($stylist_name, $id = null);
     $test_stylist->save();
     $new_stylist_name = "Frodo Baggins";
     //Act
     $test_stylist->update($new_stylist_name);
     //Assert
     $this->assertEquals("Frodo Baggins", $test_stylist->getStylistName());
 }
예제 #13
0
 function test_update()
 {
     //Arrange
     $name = "vicki";
     $id = null;
     $test_stylist = new Stylist($name, $id);
     $test_stylist->save();
     $new_stylist_name = "barb";
     //Act
     $test_stylist->update($new_stylist_name);
     //Assert
     $this->assertEquals("barb", $test_stylist->getStylistName());
 }
예제 #14
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());
 }