function test_getName() { $name = "Jane Doe"; $test_stylist = new Stylist($name); $result = $test_stylist->getName(); $this->assertEquals($name, $result); }
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); }
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()); }
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()); }
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); }
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()); }
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()); }
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()); }
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()); }