function test_getName() { $test_name = "Nordstrom"; $test_id = 1; $test_store = new Store($test_name, $test_id); $result = $test_store->getName(); $this->assertEquals($test_name, $result); }
function testUpdate() { $name = "Foot and feet"; $test_store = new Store($name); $test_store->save(); $new_name = "Foot peddler"; $test_store->updateName($new_name); $this->assertEquals($new_name, $test_store->getName()); }
function test_updateName() { $name = "Foot Locker"; $test_store = new Store($name, $id); $test_store->save(); $new_name = "Foot Action"; $test_store->updateName($new_name); $this->assertEquals("Foot Action", $test_store->getName()); }
function testUpdateName() { //Arrange $store_name = "bobs shoe store "; $test_store = new Store($store_name); $test_store->save(); $store_name2 = "nike store"; //Act $test_store->updateName($store_name2); //Assert $this->assertEquals("nike store", $test_store->getName()); }
function test_getName() { //Arrange $name = "The Shoe Store"; $location = "432 SW Tootsies Ave"; $phone = "503-555-5555"; $test_store = new Store($name, $location, $phone); //Act $result = $test_store->getName(); //Assert $this->assertEquals($name, $result); }
function test_getName() { //Arrange $name = "Payless ShoeSource"; $location = "Valley River Center"; $phone = "5415130809"; $test_store = new Store($name, $location, $phone); //Act $result = $test_store->getName(); //Assert $this->assertEquals($name, $result); }
function testUpdateName() { //Arrange $store_name = "Shoe World"; $test_store = new Store($store_name); $test_store->save(); $store_name2 = "Shoe Depot"; //Act $test_store->updateName($store_name2); //Assert $this->assertEquals("Shoe Depot", $test_store->getName()); }
function testUpdate() { // Arrange $name = "Get Your Kicks Co."; $test_Store = new Store($name); $test_Store->save(); $new_name = "Get Your Kicks Yo"; // Act $test_Store->update($new_name); $result = $test_Store->getName(); // Assert $this->assertEquals($new_name, $result); }
function testUpdate() { //Arrange $name = "Shoe Store 1"; $test_store = new Store($name); $test_store->save(); $new_name = "Shoe Store 2"; //Act $test_store->update($new_name); $result = $test_store->getName(); //Assert $this->assertEquals($new_name, $result); }
function testUpdateName() { //Arrange $name = "shoe store"; $location = "1234 nw 1st street"; $id = 4; $test_store = new Store($name, $location, $id); $test_store->save(); $new_name = "New Store"; //Act $test_store->updateName($new_name); $result = $test_store->getName(); //Assert $this->assertEquals($new_name, $result); }
function test_updateName() { //Arrange $name = "House of Shoes and Waffles"; $address = "123 Street"; $phone = "4-44"; $test_store = new Store($name, $address, $phone); $test_store->save(); // Act $new_name = "Bob's Shoe Palace"; $test_store->updateName($new_name); //Assert $this->assertEquals($new_name, $test_store->getName()); }
function testUpdateName() { //arrange $name = "Store1"; $id = 1; $test_store = new Store($name, $id); $test_store->save(); $new_name = "Store2"; //act $test_store->updateName($new_name); //arrange $this->assertEquals("Store2", $test_store->getName()); }
function testUpdate() { //Arrange $name = "Clogs-N-More"; $id = 1; $test_store = new Store($name, $id); $test_store->save(); $new_name = "Shoe Depot"; //Act $test_store->update($new_name); //Assert $this->assertEquals("Shoe Depot", $test_store->getName()); }
/** * @param Store $store * @return bool */ public function dependsOnStore($store) { foreach ($this->triggeredByStores as $triggeredByStore) { if ($triggeredByStore->getName() === $store->getName()) { return true; } if ($triggeredByStore->dependsOnStore($store)) { return true; } } return false; }