Changeset 43571 for trunk/tests/phpunit/tests/user/mapMetaCap.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/mapMetaCap.php
r42343 r43571 52 52 53 53 register_post_type( 54 self::$post_type, array( 54 self::$post_type, 55 array( 55 56 'capability_type' => 'post', 56 57 ) … … 90 91 function test_custom_capability_type_with_map_meta_cap() { 91 92 register_post_type( 92 self::$post_type, array( 93 self::$post_type, 94 array( 93 95 'capability_type' => 'book', 94 96 'map_meta_cap' => true, … … 128 130 function test_capability_type_post_with_one_renamed_cap() { 129 131 register_post_type( 130 self::$post_type, array( 132 self::$post_type, 133 array( 131 134 'capability_type' => 'post', 132 135 'capabilities' => array( 'edit_posts' => 'edit_books' ), … … 168 171 function test_capability_type_post_map_meta_cap_true_with_renamed_cap() { 169 172 register_post_type( 170 self::$post_type, array( 173 self::$post_type, 174 array( 171 175 'capability_type' => 'post', 172 176 'map_meta_cap' => true, … … 212 216 function test_capability_type_post_with_all_meta_caps_renamed() { 213 217 register_post_type( 214 self::$post_type, array( 218 self::$post_type, 219 array( 215 220 'capability_type' => 'post', 216 221 'capabilities' => array( … … 256 261 function test_capability_type_post_with_all_meta_caps_renamed_mapped() { 257 262 register_post_type( 258 self::$post_type, array( 263 self::$post_type, 264 array( 259 265 'capability_type' => 'post', 260 266 'map_meta_cap' => true,
Note: See TracChangeset
for help on using the changeset viewer.