Skip to content

Commit

Permalink
Fix the unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Nov 4, 2021
1 parent 3ecd7b6 commit 14a08e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpunit/navigation-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function test_it_enables_content_editor_for_non_navigation_type_posts_aft
$post = $this->create_navigation_post();
$this->assertFalse( $this->supports_block_editor() );

gutenberg_disable_content_editor_for_navigation_post_type( $post );
gutenberg_enable_content_editor_for_navigation_post_type( $post );

$this->assertTrue( $this->supports_block_editor() );
}
Expand All @@ -60,7 +60,7 @@ public function test_it_doesnt_enable_content_editor_for_non_navigation_type_pos
$post = $this->create_non_navigation_post();
$this->assertFalse( $this->supports_block_editor() );

gutenberg_disable_content_editor_for_navigation_post_type( $post );
gutenberg_enable_content_editor_for_navigation_post_type( $post );

$this->assertFalse( $this->supports_block_editor() );
}
Expand Down

0 comments on commit 14a08e8

Please sign in to comment.