Changeset 22719 for branches/camp/camp-2_13-tests
- Timestamp:
- 2013/03/10 12:00:17 (11 years ago)
- 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 47 47 public function testDeleteBestProducts_データが削除される(){ 48 48 49 SC_Helper_BestProducts ::deleteBestProducts("1001");49 SC_Helper_BestProducts_Ex::deleteBestProducts("1001"); 50 50 51 51 $this->expected = null; 52 52 53 $this->actual = SC_Helper_BestProducts ::getBestProducts('1001');53 $this->actual = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 54 54 55 55 $this->verify(); … … 59 59 public function testDeleteBestProducts_データ削除後_ランクが繰り上がることを確認(){ 60 60 61 SC_Helper_BestProducts ::deleteBestProducts("1001");61 SC_Helper_BestProducts_Ex::deleteBestProducts("1001"); 62 62 63 63 $this->expected = "1"; 64 64 65 $arrRet = SC_Helper_BestProducts ::getBestProducts('1002',true);65 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1002',true); 66 66 67 67 $this->actual = $arrRet['rank']; -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_deleteByProductIDsTest.php
r22713 r22719 51 51 $this->expected = null; 52 52 53 $this->actual = SC_Helper_BestProducts::getBestProducts('1001');53 $this->actual = $objHelperBestProducts->getBestProducts('1001'); 54 54 55 55 $this->verify(); … … 64 64 $this->expected = null; 65 65 66 $this->actual = SC_Helper_BestProducts::getBestProducts('1001');66 $this->actual = $objHelperBestProducts->getBestProducts('1001'); 67 67 68 68 $this->verify(); 69 69 70 $this->actual = SC_Helper_BestProducts::getBestProducts('1003');70 $this->actual = $objHelperBestProducts->getBestProducts('1003'); 71 71 72 72 $this->verify(); -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getBestProductsTest.php
r22660 r22719 50 50 51 51 $this->expected = null; 52 $this->actual = SC_Helper_BestProducts ::getBestProducts($best_id);52 $this->actual = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 53 53 54 54 $this->verify(); … … 69 69 ); 70 70 71 $result = SC_Helper_BestProducts ::getBestProducts($best_id);71 $result = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 72 72 $this->actual = Test_Utils::mapArray($result, 73 73 array('category_id', … … 89 89 90 90 $this->expected = null; 91 $this->actual = SC_Helper_BestProducts ::getBestProducts($best_id);91 $this->actual = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 92 92 93 93 $this->verify(); … … 109 109 ); 110 110 111 $result = SC_Helper_BestProducts ::getBestProducts($best_id,true);111 $result = SC_Helper_BestProducts_Ex::getBestProducts($best_id,true); 112 112 $this->actual = Test_Utils::mapArray($result, 113 113 array('category_id', -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getByRankTest.php
r22660 r22719 50 50 51 51 $this->expected = null; 52 $this->actual = SC_Helper_BestProducts ::getByRank($rank);52 $this->actual = SC_Helper_BestProducts_Ex::getByRank($rank); 53 53 54 54 $this->verify(); … … 68 68 ); 69 69 70 $result = SC_Helper_BestProducts ::getByRank($rank);70 $result = SC_Helper_BestProducts_Ex::getByRank($rank); 71 71 $this->actual = Test_Utils::mapArray($result, 72 72 array( … … 89 89 90 90 $this->expected = null; 91 $this->actual = SC_Helper_BestProducts ::getByRank($rank);91 $this->actual = SC_Helper_BestProducts_Ex::getByRank($rank); 92 92 93 93 $this->verify(); … … 108 108 ); 109 109 110 $result = SC_Helper_BestProducts ::getByRank($rank,true);110 $result = SC_Helper_BestProducts_Ex::getByRank($rank,true); 111 111 $this->actual = Test_Utils::mapArray($result, 112 112 array( -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_getListTest.php
r22660 r22719 51 51 52 52 $this->expected = array(); 53 $this->actual = SC_Helper_BestProducts ::getList();53 $this->actual = SC_Helper_BestProducts_Ex::getList(); 54 54 55 55 $this->verify(); … … 90 90 91 91 92 $this->actual = SC_Helper_BestProducts ::getList();92 $this->actual = SC_Helper_BestProducts_Ex::getList(); 93 93 $this->verify(); 94 94 … … 141 141 142 142 143 $this->actual = SC_Helper_BestProducts ::getList(0,0,true);143 $this->actual = SC_Helper_BestProducts_Ex::getList(0,0,true); 144 144 $this->verify(); 145 145 … … 168 168 169 169 170 $this->actual = SC_Helper_BestProducts ::getList(1,2);170 $this->actual = SC_Helper_BestProducts_Ex::getList(1,2); 171 171 $this->verify(); 172 172 … … 194 194 ); 195 195 196 $this->actual = SC_Helper_BestProducts ::getList(1,0);196 $this->actual = SC_Helper_BestProducts_Ex::getList(1,0); 197 197 $this->verify(); 198 198 -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankDownTest.php
r22689 r22719 44 44 public function testRankDown_指定されたデータがランクダウンされる(){ 45 45 46 SC_Helper_BestProducts ::rankDown("1001");46 SC_Helper_BestProducts_Ex::rankDown("1001"); 47 47 48 48 $this->expected = "2"; 49 49 50 $arrRet = SC_Helper_BestProducts ::getBestProducts('1001');50 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 51 51 52 52 $this->actual = $arrRet['rank']; -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_rankUpTest.php
r22689 r22719 44 44 public function testRankUp_指定されたデータがランクアップされる(){ 45 45 46 SC_Helper_BestProducts ::rankUp("1003");46 SC_Helper_BestProducts_Ex::rankUp("1003"); 47 47 48 48 $this->expected = "2"; 49 49 50 $arrRet = SC_Helper_BestProducts ::getBestProducts('1003');50 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1003'); 51 51 52 52 $this->actual = $arrRet['rank']; -
branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_BestProducts/SC_Helper_BestProducts_saveBestProductsTest.php
r22695 r22719 60 60 ); 61 61 62 $result = SC_Helper_BestProducts ::saveBestProducts($sqlVal);62 $result = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 63 63 64 64 $this->expected = array( … … 73 73 ); 74 74 75 $this->actual = SC_Helper_BestProducts ::getBestProducts('1001');75 $this->actual = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 76 76 77 $arrRet = SC_Helper_BestProducts ::getBestProducts('1001');77 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts('1001'); 78 78 79 79 … … 108 108 ); 109 109 110 $best_id = SC_Helper_BestProducts ::saveBestProducts($sqlVal);110 $best_id = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 111 111 112 112 $this->expected = array( … … 120 120 ); 121 121 122 $arrRet = SC_Helper_BestProducts ::getBestProducts($best_id);122 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 123 123 124 124 … … 154 154 ); 155 155 156 $best_id = SC_Helper_BestProducts ::saveBestProducts($sqlVal);156 $best_id = SC_Helper_BestProducts_Ex::saveBestProducts($sqlVal); 157 157 158 158 $this->expected = "4"; //ランク 159 159 160 $arrRet = SC_Helper_BestProducts ::getBestProducts($best_id);160 $arrRet = SC_Helper_BestProducts_Ex::getBestProducts($best_id); 161 161 162 162
Note: See TracChangeset
for help on using the changeset viewer.