Ignore:
Timestamp:
2014/07/10 23:50:09 (12 years ago)
Author:
shutta
Message:

#2581 (おすすめ商品管理> 最後尾のおすすめ商品の「下へ」ボタンが動作しない)
おすすめ商品のrank構造は、他のrankと扱われ方が異なるので、SC_Helper_DBのsfRankUP(),sfRankDown()ではなく、独自の「上へ」「下へ」の処理を行うよう改修。

Location:
branches/version-2_13-dev/tests/class/helper/SC_Helper_BestProducts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankDownTest.php

    r23546 r23568  
    4242    } 
    4343 
    44     public function testRankDown_指定されたデータがランクダウンされる(){ 
    45  
    46         SC_Helper_BestProducts_Ex::rankDown("1001"); 
     44    public function testRankDown_指定されたデータがランクダウンされる() 
     45    { 
     46        $objRecommend = new SC_Helper_BestProducts_Ex(); 
     47        $objRecommend->rankDown("1001"); 
    4748 
    4849        $this->expected = "2"; 
    4950 
    50         $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 
     51        $arrRet = $objRecommend->getBestProducts('1001'); 
    5152 
    5253        $this->actual = $arrRet['rank']; 
  • branches/version-2_13-dev/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankUpTest.php

    r23546 r23568  
    4242    } 
    4343 
    44     public function testRankUp_指定されたデータがランクアップされる(){ 
     44    public function testRankUp_指定されたデータがランクアップされる() 
     45    { 
     46        $objRecommend = new SC_Helper_BestProducts_Ex(); 
    4547 
    46         SC_Helper_BestProducts_Ex::rankUp("1003"); 
     48        $objRecommend->rankUp("1003"); 
    4749 
    4850        $this->expected = "2"; 
    4951 
    50         $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1003'); 
     52        $arrRet = $objRecommend->getBestProducts('1003'); 
    5153 
    5254        $this->actual = $arrRet['rank']; 
Note: See TracChangeset for help on using the changeset viewer.