Example #1
0
 function testGetStoreName()
 {
     $store_name = "Beacons Closet";
     $new_store = new Store($store_name);
     $result = $new_store->getStoreName();
     $this->assertEquals("Beacons Closet", $result);
 }
Example #2
0
 function testUpdate()
 {
     //Arrange
     $id = null;
     $store_name = "Nike";
     $test_store = new Store($id, $store_name);
     $test_store->save();
     $new_store_name = "Camera World";
     //Act
     $test_store->update($new_store_name);
     //Assert
     $this->assertEquals($test_store->getStoreName(), $new_store_name);
 }
Example #3
0
 function testUpdate()
 {
     //Arrange
     $store_name = "Portland Running Company";
     $id = 1;
     $test_store = new Store($store_name, $id);
     $test_store->save();
     $new_store_name = "New Balance";
     //Act
     $test_store->update($new_store_name);
     //Assert
     $this->assertEquals($new_store_name, $test_store->getStoreName());
 }
Example #4
0
 function test_getStoreName()
 {
     //arrange
     $store_name = "Payless";
     $id = 1;
     $test_Store = new Store($store_name, $id);
     //act
     $result = $test_Store->getStoreName();
     //assert
     $this->assertEquals($store_name, $result);
     //for debugging
     var_dump($test_Store);
 }
Example #5
0
 function test_update()
 {
     //Arrange
     $store_name = "PLZ BUY SHOES HERE";
     $id = 1;
     $test_store = new Store($store_name, $id);
     $test_store->save();
     $new_store_name = "KOOL SHOES HERE";
     //Act
     $test_store->update($new_store_name);
     //Assert
     $this->assertEquals("KOOL SHOES HERE", $test_store->getStoreName());
 }
 function testUpdate()
 {
     //Arrange
     $id = null;
     $store_name = "Footlocker";
     $test_store = new Store($store_name, $id);
     $test_store->save();
     $new_store_name = "Foot locker";
     //Act
     $test_store->update($new_store_name);
     //Assert
     $result = $test_store->getStoreName();
     $this->assertEquals($new_store_name, $result);
 }
Example #7
0
 function testUpdate()
 {
     //Arrange
     $store_name = "Norstrom";
     $id = null;
     $test_store = new Store($store_name, $id);
     $test_store->save();
     $new_name = "Ikea";
     //Act
     $test_store->update($new_name);
     //Assert
     $this->assertEquals($new_name, $test_store->getStoreName());
 }
Example #8
0
 function test_update()
 {
     //Arrange
     $store_name = "The Foot Store";
     $test_store = new Store($store_name);
     $test_store->save();
     //Act
     $new_store_name = "The Store of Feet";
     $test_store->update($new_store_name);
     //Assert
     $this->assertEquals("The Store of Feet", $test_store->getStoreName());
 }
Example #9
0
 function testUpdate()
 {
     //Arrange
     $store_name = "Chill N Fill";
     $id = 1;
     $category = "bar";
     $region = "North Portland";
     $address = "5215 N Lombard Portland, OR 97203";
     $test_store = new Store($store_name, $category, $region, $address, $id);
     $test_store->save();
     $new_store_name = "Fill N Chill";
     $new_category = "bottleshop";
     $new_region = "SW Portland";
     $new_address = "5215 N Chautauqua Blvd Portland, OR 97203";
     //Act
     $test_store->update($new_store_name, $new_category, $new_region, $new_address);
     //Assert
     $this->assertEquals("Fill N Chill", $test_store->getStoreName());
     $this->assertEquals("bottleshop", $test_store->getCategory());
     $this->assertEquals("SW Portland", $test_store->getRegion());
     $this->assertEquals("5215 N Chautauqua Blvd Portland, OR 97203", $test_store->getAddress());
 }
Example #10
0
 function testUpdate()
 {
     //Arrange
     $store_name = "Shoes Galore";
     $test_store = new Store($store_name);
     $test_store->save();
     $new_store_name = "Save Our Soles";
     //Act
     $test_store->update($new_store_name);
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("Save Our Soles", $result);
 }
Example #11
0
 function test_store_update()
 {
     //Arrange
     $store_name2 = "Goody New Shoes";
     $test_store2 = new Store($store_name2);
     $test_store2->save();
     $store_name = "Groos Shoes";
     $test_store = new Store($store_name);
     $test_store->save();
     $new_name = "Foot Action";
     //Act
     $test_store->update($new_name);
     //Assert
     $this->assertEquals($new_name, $test_store->getStoreName());
 }
Example #12
0
 function testUpdate()
 {
     //Arrange
     $store_name = "Happy Lemon";
     $id = 1;
     $test_store = new Store($store_name, $id);
     $test_store->save();
     $new_store_name = "Chatime";
     //Act
     $test_store->update($new_store_name);
     //Assert
     $this->assertEquals($new_store_name, $test_store->getStoreName());
 }