Changeset 54855 for trunk/tests/phpunit/tests/functions/wpListUtil.php
- Timestamp:
- 11/17/2022 06:13:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpListUtil.php
r54663 r54855 65 65 * @param string $target_key The key to pluck. 66 66 * @param array $expected The expected array. 67 * @param string $index_key Optional. Field from the element to use as keys for the new array. Default null. 67 * @param string $index_key Optional. Field from the element to use as keys for the new array. 68 * Default null. 68 69 */ 69 70 public function test_wp_list_util_pluck( $target_array, $target_key, $expected, $index_key = null ) { … … 157 158 * @param array $expected The expected array. 158 159 * @param array $target_array The array to create a list from. 159 * @param array $orderby Optional. Either the field name to order by or an array of multiple orderby fields as $orderby => $order. 160 * @param array $orderby Optional. Either the field name to order by or an array 161 * of multiple orderby fields as `$orderby => $order`. 160 162 * Default empty array. 161 * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if $orderby is a string. Default 'ASC'. 163 * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if `$orderby` 164 * is a string. Default 'ASC'. 162 165 * @param bool $preserve_keys Optional. Whether to preserve keys. Default false. 163 166 */ … … 956 959 * @param array $expected The expected array. 957 960 * @param array $target_array The array to create a list from. 958 * @param array $orderby Optional. Either the field name to order by or an array of multiple orderby fields as $orderby => $order. 961 * @param array $orderby Optional. Either the field name to order by or an array 962 * of multiple orderby fields as `$orderby => $order`. 959 963 * Default empty array. 960 * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if $orderby is a string. Default 'ASC'. 964 * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if `$orderby` 965 * is a string. Default 'ASC'. 961 966 * @param bool $preserve_keys Optional. Whether to preserve keys. Default false. 962 967 */
Note: See TracChangeset
for help on using the changeset viewer.