Changeset 54088 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r54068 r54088 727 727 public function test_use_block_editor_for_post() { 728 728 $this->assertFalse( use_block_editor_for_post( -1 ) ); 729 $bogus_post_id = $this->factory()->post->create(729 $bogus_post_id = self::factory()->post->create( 730 730 array( 731 731 'post_type' => 'bogus', … … 740 740 ) 741 741 ); 742 $restless_post_id = $this->factory()->post->create(742 $restless_post_id = self::factory()->post->create( 743 743 array( 744 744 'post_type' => 'restless', … … 747 747 $this->assertFalse( use_block_editor_for_post( $restless_post_id ) ); 748 748 749 $generic_post_id = $this->factory()->post->create();749 $generic_post_id = self::factory()->post->create(); 750 750 751 751 add_filter( 'use_block_editor_for_post', '__return_false' );
Note: See TracChangeset
for help on using the changeset viewer.