Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/test/class/page/LC_Page_Admin_Products_ProductClass_Test.php

    r22567 r22796  
    3333 * @version $Id$ 
    3434 */ 
    35 class LC_Page_Admin_Products_ProductClass_Test extends PHPUnit_Framework_TestCase  
    36 { 
    37  
    38     function setUp() 
    39     { 
     35class LC_Page_Admin_Products_ProductClass_Test extends PHPUnit_Framework_TestCase { 
     36 
     37    function setUp() { 
    4038        $this->objQuery =& SC_Query::getSingletonInstance(); 
    4139        $this->objQuery->begin(); 
     
    4644    } 
    4745 
    48     function tearDown() 
    49     { 
     46    function tearDown() { 
    5047        $this->objQuery->rollback(); 
    5148        $this->objQuery = null; 
     
    5350    } 
    5451 
    55     function testInit() 
    56     { 
     52    function testInit() { 
    5753 
    5854        $this->assertEquals('products/product_class.tpl', 
     
    6662    } 
    6763 
    68     function testProcess() 
    69     { 
     64    function testProcess() { 
    7065        $this->objPage->process(); 
    7166    } 
    7267 
    73     function testCreateSearchParams() 
    74     { 
     68    function testCreateSearchParams() { 
    7569        $keys = array('search_product_id', 
    7670                      'search_product_code', 
     
    110104    } 
    111105 
    112     function testGetProductName() 
    113     { 
     106    function testGetProductName() { 
    114107        $product_id = 10000000; 
    115108        $this->expected = "テスト商品"; 
     
    121114    } 
    122115 
    123     function testGetProductsClass() 
    124     { 
     116    function testGetProductsClass() { 
    125117        $product_id = 10000000; 
    126118        $product_class_id = 10000; 
     
    149141    } 
    150142 
    151     function testGetAllClass() 
    152     { 
     143    function testGetAllClass() { 
    153144        $this->clearClass(); 
    154145        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    163154    } 
    164155 
    165     function testGetAllClassCategory規格1のみ() 
    166     { 
     156    function testGetAllClassCategory規格1のみ() { 
    167157        $this->clearClass(); 
    168158        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    192182    } 
    193183 
    194     function testGetAllClassCategory規格1と3() 
    195     { 
     184    function testGetAllClassCategory規格1と3() { 
    196185        $this->clearClass(); 
    197186        $this->setClass(1000, "大きさ", 1, array('S', 'M', 'L', 'LL')); 
     
    305294    } 
    306295 
    307     function testGetProductsClassAndClasscategory() 
    308     { 
     296    function testGetProductsClassAndClasscategory() { 
    309297        $product_id = 10000; 
    310298        $product_class_id = 1000; 
     
    343331    } 
    344332 
    345     function verify() 
    346     { 
     333    function verify() { 
    347334        $this->assertEquals($this->expected, $this->actual); 
    348335    } 
    349336 
    350     function setProduct($product_id, $name) 
    351     { 
     337    function setProduct($product_id, $name) { 
    352338        $val['product_id'] = $product_id; 
    353339        $val['name'] = $name; 
     
    357343    } 
    358344 
    359     function setProductsClass($product_id, $product_class_id, $class_combination_id = null) 
    360     { 
     345    function setProductsClass($product_id, $product_class_id, $class_combination_id = null) { 
    361346        $val['product_class_id'] = $product_class_id; 
    362347        $val['product_id'] = $product_id; 
     
    380365    } 
    381366 
    382     function clearClass() 
    383     { 
     367    function clearClass() { 
    384368        $this->objQuery->delete('dtb_class'); 
    385369        $this->objQuery->delete('dtb_classcategory'); 
     
    394378     * @param array $classcategory 規格分類名の配列 
    395379     */ 
    396     function setClass($class_id, $class_name, $rank, $classcategory) 
    397     { 
     380    function setClass($class_id, $class_name, $rank, $classcategory) { 
    398381        $val['class_id'] = $class_id; 
    399382        $val['name'] = $class_name; 
     
    414397} 
    415398 
    416 class LC_Page_Admin_Products_ProductClass_Mock extends LC_Page_Admin_Products_ProductClass  
    417 { 
    418  
    419     function authorization() 
    420     { 
     399class LC_Page_Admin_Products_ProductClass_Mock extends LC_Page_Admin_Products_ProductClass { 
     400 
     401    function authorization() { 
    421402        // quiet. 
    422403    } 
    423404 
    424     function assignView() 
    425     { 
     405    function assignView() { 
    426406        // quiet. 
    427407    } 
Note: See TracChangeset for help on using the changeset viewer.