Changeset 22567 for branches/version-2_12-dev/tests/class/test
- Timestamp:
- 2013/02/18 19:09:54 (10 years ago)
- Location:
- branches/version-2_12-dev/tests/class/test/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/test/util/Test_Utils.php
r22206 r22567 29 29 * @version $Id$ 30 30 */ 31 class Test_Utils { 31 class Test_Utils 32 { 32 33 33 34 /** … … 40 41 * @return 指定したキーのみを持つ連想配列 41 42 */ 42 public static function mapArray($input_array, $map_keys) { 43 public static function mapArray($input_array, $map_keys) 44 { 43 45 $output_array = array(); 44 46 foreach ($map_keys as $index => $map_key) { … … 58 60 * @return 指定のキーだけを抜き出した配列 59 61 */ 60 public static function mapCols($input_array, $key) { 62 public static function mapCols($input_array, $key) 63 { 61 64 $output_array = array(); 62 65 foreach ($input_array as $data) { … … 75 78 * @param new_array 追加要素を持つ配列 76 79 */ 77 public static function array_append(&$orig_array, $new_array) { 80 public static function array_append(&$orig_array, $new_array) 81 { 78 82 foreach ($new_array as $element) { 79 83 $orig_array[] = $element; -
branches/version-2_12-dev/tests/class/test/util/User_Utils.php
r22164 r22567 5 5 * 6 6 */ 7 class User_Utils { 7 class User_Utils 8 { 8 9 9 10 /** … … 13 14 * @param deviceType 端末種別ID 14 15 */ 15 public static function setDeviceType($deviceType) { 16 public static function setDeviceType($deviceType) 17 { 16 18 SC_Display_Ex::setDummyDevice($deviceType); 17 19 } … … 23 25 * @param isLogin true:ログインしている、false:ログインしていない 24 26 */ 25 public static function setLoginState($isLogin, $customer = null, $objQuery = null) { 27 public static function setLoginState($isLogin, $customer = null, $objQuery = null) 28 { 26 29 if (!$isLogin) { 27 30 $_SESSION['customer']['customer_id'] = null; … … 39 42 * ユーザ情報を外部から設定しなかった場合のデフォルト値を取得します。 40 43 */ 41 private static function getDefaultCustomer() { 44 private static function getDefaultCustomer() 45 { 42 46 $arrValue['customer_id'] = '999999998'; 43 47 $arrValue['name01'] = '苗字';
Note: See TracChangeset
for help on using the changeset viewer.