- Timestamp:
- 2013/02/13 13:28:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_sfGetProductClassIdTest.php
r22206 r22532 45 45 46 46 ///////////////////////////////////////// 47 public function testSfGetProductClassId_存在する IDを指定した場合_対応する製品クラスが取得できる() {47 public function testSfGetProductClassId_存在する製品IDのみを指定した場合_カテゴリ0の対応する製品クラスが取得できる() { 48 48 49 $this->expected = ' 1001';50 $this->actual = SC_Utils::sfGetProductClassId(' 1001');49 $this->expected = '2001'; 50 $this->actual = SC_Utils::sfGetProductClassId('2001'); 51 51 52 52 $this->verify('取得した製品クラス'); 53 53 } 54 54 55 public function testSfGetProductClassId_存在しないIDを指定した場合_nullが返る() { 55 public function testSfGetProductClassId_存在する製品IDのみを指定してカテゴリ0の製品クラスが存在しなければ_nullが返る() { 56 57 $this->expected = null; 58 $this->actual = SC_Utils::sfGetProductClassId('1001'); 59 60 $this->verify('取得結果が空'); 61 } 62 63 public function testSfGetProductClassId_存在する製品IDとカテゴリIDを指定した場合_対応する製品クラスが取得できる() { 64 65 $this->expected = '1002'; 66 $this->actual = SC_Utils::sfGetProductClassId('1001', '2'); 67 68 $this->verify('取得した製品クラス'); 69 } 70 71 public function testSfGetProductClassId_存在する製品IDと存在しないカテゴリIDを指定した場合_nullが返る() { 72 73 $this->expected = null; 74 $this->actual = SC_Utils::sfGetProductClassId('1001', '999'); 75 76 $this->verify('取得結果が空'); 77 } 78 79 public function testSfGetProductClassId_存在しない製品IDを指定した場合_nullが返る() { 56 80 $this->expected = null; 57 81 $this->actual = SC_Utils::sfGetProductClassId('9999'); … … 77 101 'creator_id' => '1', 78 102 'update_date' => 'CURRENT_TIMESTAMP' 79 ) 80 /** 同じproduct_idが2つあるケースは現状failするのでいったんコメントアウト 103 ), 81 104 array( 82 105 'product_class_id' => '1002', … … 87 110 'update_date' => 'CURRENT_TIMESTAMP' 88 111 ) 89 */90 112 ); 91 113
Note: See TracChangeset
for help on using the changeset viewer.