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


PHP Brand::getBrandName方法代码示例

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


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

示例1: testGetBrandName

 function testGetBrandName()
 {
     $brand_name = "Air Jordan";
     $test_brand = new Brand($brand_name);
     $result = $test_brand->getBrandName();
     $this->assertEquals($brand_name, $result);
 }
开发者ID:CaseyH33,项目名称:Shoes,代码行数:7,代码来源:BrandTest.php

示例2: Brand

 function test_getBrandName()
 {
     //Arrange
     $brand_name = "Nike";
     $test_brand = new Brand($brand_name);
     //Act
     $result = $test_brand->getBrandName();
     //Assert
     $this->assertEquals("Nike", $result);
 }
开发者ID:kevintokheim,项目名称:Shoe_Store,代码行数:10,代码来源:BrandTest.php

示例3: testSetBrandName

 function testSetBrandName()
 {
     //Arrange
     $brand_name = "Feiyue";
     $test_brand = new Brand($brand_name);
     //Act
     $test_brand->setBrandName($brand_name);
     $result = $test_brand->getBrandName();
     //Assert
     $this->assertEquals($brand_name, $result);
 }
开发者ID:slmaturen,项目名称:shoe_store,代码行数:11,代码来源:BrandTest.php

示例4: Brand

 function test_setBrandName()
 {
     //Arrange
     $brand_name = "BRAH-DIDAS";
     $test_brand = new Brand($brand_name);
     //Act
     $test_brand->setBrandName($brand_name);
     $result = $test_brand->getBrandName();
     //Assert
     $this->assertEquals("BRAH-DIDAS", $result);
 }
开发者ID:nathanhwyoung,项目名称:shoe_stores,代码行数:11,代码来源:BrandTest.php

示例5: Brand

 function test_setBrandName()
 {
     //Arrange
     $brand_name = "Converse";
     $id = null;
     $test_brand = new Brand($brand_name, $id);
     //Act
     $test_brand->setBrandName("Nike");
     $result = $test_brand->getBrandName();
     //Assert
     $this->assertEquals("Nike", $result);
 }
开发者ID:austinblanchard,项目名称:shoe_stores,代码行数:12,代码来源:BrandTest.php

示例6: delete

 public function delete($id)
 {
     $brand = Brand::getBrandName($id);
     $rowdelete = Drugcode::deleteBrand($id);
     //If query succeeds
     if ($rowdelete > 0) {
         //$this -> session -> set_userdata('message_counter', '1');
         $this->session->set_userdata('msg_error', $brand['Brand'] . ' was deleted !');
     } else {
         //$this -> session -> set_userdata('message_counter', '2');
         $this->session->set_userdata('msg_error', 'An error occured while deleting the brand. Try again !');
     }
     redirect("settings_management");
 }
开发者ID:OmondiKevin,项目名称:ADT_MTRH,代码行数:14,代码来源:brandname_management.php

示例7: testUpdate

 function testUpdate()
 {
     //Arrange
     $brand_name = "Sketchers";
     $test_brand = new Brand($brand_name);
     $test_brand->save();
     $new_name = "Vans";
     //Act
     $test_brand->update($new_name);
     //Assert
     $this->assertEquals($new_name, $test_brand->getBrandName());
 }
开发者ID:kellimargaret,项目名称:Shoe_Stores,代码行数:12,代码来源:BrandTest.php

示例8: testUpdate

 function testUpdate()
 {
     //Arrange
     $brand_name = "Nike";
     $id = 1;
     $test_brand = new Brand($brand_name, $id);
     $test_brand->save();
     $new_brand_name = "Fila";
     //Act
     $test_brand->update($new_brand_name);
     //Assert
     $this->assertEquals('Fila', $test_brand->getBrandName());
 }
开发者ID:jtorrespdx,项目名称:Shoe_stores,代码行数:13,代码来源:BrandTest.php


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