当前位置: 首页>>代码示例>>PHP>>正文


PHP Store::getName方法代码示例

本文整理汇总了PHP中Store::getName方法的典型用法代码示例。如果您正苦于以下问题:PHP Store::getName方法的具体用法?PHP Store::getName怎么用?PHP Store::getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Store的用法示例。


在下文中一共展示了Store::getName方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Store

 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);
 }
开发者ID:juliocesardiaz,项目名称:Shoes,代码行数:8,代码来源:StoreTest.php

示例2: testUpdate

 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());
 }
开发者ID:alexMcosta,项目名称:Shoes_Brands,代码行数:9,代码来源:StoreTest.php

示例3: Store

 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());
 }
开发者ID:jeffaustin81,项目名称:shoe_store,代码行数:9,代码来源:StoreTest.php

示例4: testUpdateName

 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());
 }
开发者ID:bencasalino,项目名称:shoe-store,代码行数:12,代码来源:StoreTest.php

示例5: Store

 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);
 }
开发者ID:alexdbrown,项目名称:shoe_store,代码行数:12,代码来源:StoreTest.php

示例6: testUpdate

 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);
 }
开发者ID:ben-pritchard,项目名称:Epicodus-Assessment---PHP-Many-to-Many-in-Silex,代码行数:13,代码来源:storeTest.php

示例7: testUpdate

 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);
 }
开发者ID:anniehoogendoorn,项目名称:ShoeStores,代码行数:13,代码来源:StoreTest.php

示例8: testUpdateName

 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);
 }
开发者ID:bencasalino,项目名称:cr4,代码行数:15,代码来源:StoreTest.php

示例9: Store

 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());
 }
开发者ID:r-hills,项目名称:Shoes,代码行数:14,代码来源:StoreTest.php

示例10: testUpdateName

 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());
 }
开发者ID:bdspen,项目名称:ShoeStore,代码行数:13,代码来源:StoreTest.php

示例11: testUpdate

 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());
 }
开发者ID:bborealis,项目名称:shoes,代码行数:13,代码来源:StoreTest.php

示例12: dependsOnStore

 /**
  * @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;
 }
开发者ID:wizbii,项目名称:pipeline,代码行数:16,代码来源:Store.php


注:本文中的Store::getName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。