function test_getStylistName() { //Arrange $stylist_name = "John Doe"; $test_Stylist = new Stylist($stylist_name); //Act $result = $test_Stylist->getStylistName(); //Assert $this->assertEquals($stylist_name, $result); }
function test_updateStylist() { $stylist_name = "Mike Heroku"; $id = null; $test_stylist = new Stylist($stylist_name, $id); $test_stylist->save(); $new_stylist_name = "Kyle Sites"; $test_stylist->updateStylist($new_stylist_name); $this->assertEquals("Kyle Sites", $test_stylist->getStylistName()); }
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); }
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); }
function test_update() { //arrange $stylist_name = "Nora"; $id = null; $test_stylist = new Stylist($stylist_name, $id); $test_stylist->save(); $new_stylist_name = "Dora"; //act $test_stylist->updateStylistName($new_stylist_name); //assert $this->assertEquals("Dora", $test_stylist->getStylistName()); }
function test_updateName() { $stylist_name = "Donna"; $test_stylist = new Stylist($stylist_name); $test_stylist->save(); $new_stylist_name = "Danny"; //Act $test_stylist->updateName($new_stylist_name); //Assert $this->assertEquals($test_stylist->getStylistName(), "Danny"); }
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()); }
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()); }
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()); }
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()); }