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