Ignore:
Timestamp:
2013/03/10 12:00:17 (11 years ago)
Author:
hiro151
Message:

#2183 SC_Helper_BestProductsを拡張クラスを使うよう修正

Location:
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_deleteBestProductsTest.php

    r22689 r22719  
    4747    public function testDeleteBestProducts_データが削除される(){ 
    4848 
    49         SC_Helper_BestProducts::deleteBestProducts("1001"); 
     49        SC_Helper_BestProducts_Ex::deleteBestProducts("1001"); 
    5050 
    5151        $this->expected = null; 
    5252 
    53         $this->actual = SC_Helper_BestProducts::getBestProducts('1001'); 
     53        $this->actual = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 
    5454 
    5555        $this->verify(); 
     
    5959    public function testDeleteBestProducts_データ削除後_ランクが繰り上がることを確認(){ 
    6060 
    61         SC_Helper_BestProducts::deleteBestProducts("1001"); 
     61        SC_Helper_BestProducts_Ex::deleteBestProducts("1001"); 
    6262 
    6363        $this->expected = "1"; 
    6464 
    65         $arrRet = SC_Helper_BestProducts::getBestProducts('1002',true); 
     65        $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1002',true); 
    6666 
    6767        $this->actual = $arrRet['rank']; 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_deleteByProductIDsTest.php

    r22713 r22719  
    5151        $this->expected = null; 
    5252 
    53         $this->actual = SC_Helper_BestProducts::getBestProducts('1001'); 
     53        $this->actual = $objHelperBestProducts->getBestProducts('1001'); 
    5454 
    5555        $this->verify(); 
     
    6464        $this->expected = null; 
    6565 
    66         $this->actual = SC_Helper_BestProducts::getBestProducts('1001'); 
     66        $this->actual = $objHelperBestProducts->getBestProducts('1001'); 
    6767 
    6868        $this->verify(); 
    6969 
    70         $this->actual = SC_Helper_BestProducts::getBestProducts('1003'); 
     70        $this->actual = $objHelperBestProducts->getBestProducts('1003'); 
    7171 
    7272        $this->verify(); 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getBestProductsTest.php

    r22660 r22719  
    5050 
    5151        $this->expected = null; 
    52         $this->actual = SC_Helper_BestProducts::getBestProducts($best_id); 
     52        $this->actual = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 
    5353 
    5454        $this->verify(); 
     
    6969        ); 
    7070 
    71         $result = SC_Helper_BestProducts::getBestProducts($best_id); 
     71        $result = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 
    7272        $this->actual = Test_Utils::mapArray($result, 
    7373            array('category_id', 
     
    8989 
    9090        $this->expected = null; 
    91         $this->actual = SC_Helper_BestProducts::getBestProducts($best_id); 
     91        $this->actual = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 
    9292 
    9393        $this->verify(); 
     
    109109        ); 
    110110 
    111         $result = SC_Helper_BestProducts::getBestProducts($best_id,true); 
     111        $result = SC_Helper_BestProducts_Ex::getBestProducts($best_id,true); 
    112112        $this->actual = Test_Utils::mapArray($result, 
    113113            array('category_id', 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getByRankTest.php

    r22660 r22719  
    5050 
    5151        $this->expected = null; 
    52         $this->actual = SC_Helper_BestProducts::getByRank($rank); 
     52        $this->actual = SC_Helper_BestProducts_Ex::getByRank($rank); 
    5353 
    5454        $this->verify(); 
     
    6868        ); 
    6969 
    70         $result = SC_Helper_BestProducts::getByRank($rank); 
     70        $result = SC_Helper_BestProducts_Ex::getByRank($rank); 
    7171        $this->actual = Test_Utils::mapArray($result, 
    7272            array( 
     
    8989 
    9090        $this->expected = null; 
    91         $this->actual = SC_Helper_BestProducts::getByRank($rank); 
     91        $this->actual = SC_Helper_BestProducts_Ex::getByRank($rank); 
    9292 
    9393        $this->verify(); 
     
    108108        ); 
    109109 
    110         $result = SC_Helper_BestProducts::getByRank($rank,true); 
     110        $result = SC_Helper_BestProducts_Ex::getByRank($rank,true); 
    111111        $this->actual = Test_Utils::mapArray($result, 
    112112            array( 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getListTest.php

    r22660 r22719  
    5151 
    5252        $this->expected = array(); 
    53         $this->actual = SC_Helper_BestProducts::getList(); 
     53        $this->actual = SC_Helper_BestProducts_Ex::getList(); 
    5454 
    5555        $this->verify(); 
     
    9090 
    9191 
    92         $this->actual = SC_Helper_BestProducts::getList(); 
     92        $this->actual = SC_Helper_BestProducts_Ex::getList(); 
    9393        $this->verify(); 
    9494 
     
    141141 
    142142 
    143         $this->actual = SC_Helper_BestProducts::getList(0,0,true); 
     143        $this->actual = SC_Helper_BestProducts_Ex::getList(0,0,true); 
    144144        $this->verify(); 
    145145 
     
    168168 
    169169 
    170         $this->actual = SC_Helper_BestProducts::getList(1,2); 
     170        $this->actual = SC_Helper_BestProducts_Ex::getList(1,2); 
    171171        $this->verify(); 
    172172 
     
    194194        ); 
    195195 
    196         $this->actual = SC_Helper_BestProducts::getList(1,0); 
     196        $this->actual = SC_Helper_BestProducts_Ex::getList(1,0); 
    197197        $this->verify(); 
    198198 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankDownTest.php

    r22689 r22719  
    4444    public function testRankDown_指定されたデータがランクダウンされる(){ 
    4545 
    46         SC_Helper_BestProducts::rankDown("1001"); 
     46        SC_Helper_BestProducts_Ex::rankDown("1001"); 
    4747 
    4848        $this->expected = "2"; 
    4949 
    50         $arrRet = SC_Helper_BestProducts::getBestProducts('1001'); 
     50        $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 
    5151 
    5252        $this->actual = $arrRet['rank']; 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankUpTest.php

    r22689 r22719  
    4444    public function testRankUp_指定されたデータがランクアップされる(){ 
    4545 
    46         SC_Helper_BestProducts::rankUp("1003"); 
     46        SC_Helper_BestProducts_Ex::rankUp("1003"); 
    4747 
    4848        $this->expected = "2"; 
    4949 
    50         $arrRet = SC_Helper_BestProducts::getBestProducts('1003'); 
     50        $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1003'); 
    5151 
    5252        $this->actual = $arrRet['rank']; 
  • branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_saveBestProductsTest.php

    r22695 r22719  
    6060        ); 
    6161 
    62         $result = SC_Helper_BestProducts::saveBestProducts($sqlVal); 
     62        $result = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 
    6363 
    6464        $this->expected = array( 
     
    7373        ); 
    7474 
    75         $this->actual = SC_Helper_BestProducts::getBestProducts('1001'); 
     75        $this->actual = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 
    7676 
    77         $arrRet = SC_Helper_BestProducts::getBestProducts('1001'); 
     77        $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 
    7878 
    7979 
     
    108108            ); 
    109109 
    110             $best_id = SC_Helper_BestProducts::saveBestProducts($sqlVal); 
     110            $best_id = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 
    111111 
    112112            $this->expected = array( 
     
    120120            ); 
    121121 
    122             $arrRet = SC_Helper_BestProducts::getBestProducts($best_id); 
     122            $arrRet = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 
    123123 
    124124 
     
    154154            ); 
    155155 
    156             $best_id = SC_Helper_BestProducts::saveBestProducts($sqlVal); 
     156            $best_id = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 
    157157 
    158158            $this->expected = "4"; //ランク 
    159159 
    160             $arrRet = SC_Helper_BestProducts::getBestProducts($best_id); 
     160            $arrRet = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 
    161161 
    162162 
Note: See TracChangeset for help on using the changeset viewer.