Changeset 56091 for trunk/tests/phpunit/tests/admin/includesPost.php
- Timestamp:
- 06/28/2023 01:17:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPost.php
r55673 r56091 317 317 $this->assertSame( 'aside', get_post_format( $post_id ) ); 318 318 } 319 } 320 321 /** 322 * Tests that `bulk_edit_posts()` fires the 'bulk_edit_posts' action. 323 * 324 * @ticket 28112 325 * 326 * @covers ::bulk_edit_posts 327 */ 328 public function test_bulk_edit_posts_should_fire_bulk_edit_posts_action() { 329 wp_set_current_user( self::$admin_id ); 330 331 $action = new MockAction(); 332 add_action( 'bulk_edit_posts', array( $action, 'action' ) ); 333 334 bulk_edit_posts( 335 array( 336 'post' => self::$post_id, 337 'post_type' => 'post', 338 '_status' => 1, 339 340 ) 341 ); 342 343 $this->assertSame( 1, $action->get_call_count() ); 319 344 } 320 345
Note: See TracChangeset
for help on using the changeset viewer.