Beispiel #1
0
 function testUpdate()
 {
     $store_name = "Beacons Closet";
     $new_store = new Store($store_name);
     $new_store->save();
     $new_store->setStoreName("Buffalo Exchange");
     $new_store->update();
     $result = Store::getAll();
     $this->assertEquals($new_store, $result[0]);
 }
Beispiel #2
0
 function test_setStoreName()
 {
     //Arrange
     $store_name = "Flying Shoes";
     $test_store = new Store($store_name);
     //Act
     $test_store->setStoreName("Awesome Shoe Store");
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("Awesome Shoe Store", $result);
 }
 function test_setStoreName()
 {
     //Arrange
     $store_name = "BIG F*****G SHOE STORE";
     $test_store = new Store($store_name);
     //Act
     $test_store->setStoreName($store_name);
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("BIG F*****G SHOE STORE", $result);
 }
Beispiel #4
0
 function testSetStoreName()
 {
     //Arrange
     $store_name = "Happy Lemon";
     $test_store = new Store($store_name);
     //Act
     $test_store->setStoreName($store_name);
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals($store_name, $result);
 }
 function test_setCourseName()
 {
     //Arrange
     $store_name = "Nordstrom";
     $id = null;
     $test_store = new Store($store_name, $id);
     //Act
     $test_store->setStoreName("Nordstrom Rack");
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("Nordstrom Rack", $result);
 }
Beispiel #6
0
 function testSetStoreName()
 {
     //Arrange
     $store_name = "Portland Running Company";
     $id = null;
     $test_store = new Store($store_name, $id);
     $test_store->save();
     //Act
     $test_store->setStoreName("New Balance");
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("New Balance", $result);
 }
Beispiel #7
0
 function test_store_set()
 {
     //Arrange
     $store_name = "Gary's Shoes and Accessories for Today's Woman";
     $id = 1;
     $test_store = new Store($store_name, $id);
     $new_name = "Goody New Shoes";
     //Act
     $test_store->setStoreName($new_name);
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals($new_name, $result);
 }
Beispiel #8
0
 function testSetName()
 {
     //Arrange
     $store_name = "Growler Guys";
     $id = 1;
     $category = "bar";
     $region = "North Portland";
     $address = "5215 N Lombard Portland, OR 97203";
     $test_store = new Store($store_name, $category, $region, $address, $id);
     //Act
     $test_store->setStoreName("Chill N Fill");
     $result = $test_store->getStoreName();
     //Assert
     $this->assertEquals("Chill N Fill", $result);
 }