コード例 #1
0
ファイル: StoreTest.php プロジェクト: jschold/shoe_stores
 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]);
 }
コード例 #2
0
ファイル: StoreTest.php プロジェクト: kevintokheim/Shoe_Store
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
ファイル: StoreTest.php プロジェクト: slmaturen/shoe_store
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
ファイル: StoreTest.php プロジェクト: kennygrage/dish
 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);
 }
コード例 #7
0
ファイル: StoreTest.php プロジェクト: CharlesAMoss/epic_Shoes
 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);
 }
コード例 #8
0
ファイル: StoreTest.php プロジェクト: bborealis/growler
 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);
 }