Skip to content

Commit

Permalink
Fix a unit test that asserted the opposite
Browse files Browse the repository at this point in the history
It should ensure that the styles are present,
not that they aren't.
  • Loading branch information
kienstra committed Mar 3, 2020
1 parent 196c776 commit 65471ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/php/modules/comment-likes/test-class.comment-likes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public function test_load_styles_register_scripts_likes_not_visible() {
* @since 8.4.0
*/
public function test_load_styles_register_scripts_likes_visible() {
add_filter( 'wpl_is_likes_visible', '__return_false' );
add_filter( 'wpl_is_likes_visible', '__return_true' );
$instance = Jetpack_Comment_Likes::init();
$instance->load_styles_register_scripts();

$this->assertFalse( wp_style_is( 'jetpack_likes' ) );
$this->assertFalse( wp_script_is( 'postmessage' ) );
$this->assertTrue( wp_style_is( 'jetpack_likes' ) );
$this->assertTrue( wp_script_is( 'postmessage' ) );
}
}

0 comments on commit 65471ed

Please sign in to comment.