Changeset 52010 for trunk/tests/phpunit/tests/user/mapMetaCap.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/mapMetaCap.php
r49603 r52010 42 42 * @ticket 13905 43 43 */ 44 function test_capability_type_post_with_invalid_id() {44 public function test_capability_type_post_with_invalid_id() { 45 45 $this->assertSame( 46 46 array( 'do_not_allow' ), … … 49 49 } 50 50 51 function test_capability_type_post_with_no_extra_caps() {51 public function test_capability_type_post_with_no_extra_caps() { 52 52 53 53 register_post_type( … … 89 89 } 90 90 91 function test_custom_capability_type_with_map_meta_cap() {91 public function test_custom_capability_type_with_map_meta_cap() { 92 92 register_post_type( 93 93 self::$post_type, … … 128 128 } 129 129 130 function test_capability_type_post_with_one_renamed_cap() {130 public function test_capability_type_post_with_one_renamed_cap() { 131 131 register_post_type( 132 132 self::$post_type, … … 169 169 } 170 170 171 function test_capability_type_post_map_meta_cap_true_with_renamed_cap() {171 public function test_capability_type_post_map_meta_cap_true_with_renamed_cap() { 172 172 register_post_type( 173 173 self::$post_type, … … 214 214 } 215 215 216 function test_capability_type_post_with_all_meta_caps_renamed() {216 public function test_capability_type_post_with_all_meta_caps_renamed() { 217 217 register_post_type( 218 218 self::$post_type, … … 259 259 } 260 260 261 function test_capability_type_post_with_all_meta_caps_renamed_mapped() {261 public function test_capability_type_post_with_all_meta_caps_renamed_mapped() { 262 262 register_post_type( 263 263 self::$post_type, … … 308 308 * @ticket 30991 309 309 */ 310 function test_delete_posts_cap_without_map_meta_cap() {310 public function test_delete_posts_cap_without_map_meta_cap() { 311 311 register_post_type( 312 312 self::$post_type, … … 323 323 } 324 324 325 function test_unfiltered_html_cap() {325 public function test_unfiltered_html_cap() { 326 326 if ( defined( 'DISALLOW_UNFILTERED_HTML' ) ) { 327 327 $this->assertFalse( DISALLOW_UNFILTERED_HTML ); … … 339 339 * @ticket 20488 340 340 */ 341 function test_file_edit_caps_not_reliant_on_unfiltered_html_constant() {341 public function test_file_edit_caps_not_reliant_on_unfiltered_html_constant() { 342 342 $this->assertFalse( defined( 'DISALLOW_FILE_MODS' ) ); 343 343 $this->assertFalse( defined( 'DISALLOW_FILE_EDIT' ) ); … … 357 357 * @ticket 27020 358 358 */ 359 function test_authorless_posts_capabilties() {359 public function test_authorless_posts_capabilties() { 360 360 $post_id = self::factory()->post->create( 361 361 array( … … 377 377 * @ticket 37580 378 378 */ 379 function test_only_users_who_can_manage_options_can_delete_page_on_front() {379 public function test_only_users_who_can_manage_options_can_delete_page_on_front() { 380 380 $post_id = self::factory()->post->create( 381 381 array( … … 397 397 * @ticket 37580 398 398 */ 399 function test_only_users_who_can_manage_options_can_delete_page_for_posts() {399 public function test_only_users_who_can_manage_options_can_delete_page_for_posts() { 400 400 $post_id = self::factory()->post->create( 401 401 array(
Note: See TracChangeset
for help on using the changeset viewer.