Skip to content

Commit

Permalink
Turns out it returns the hook priority instead so we check that
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 19, 2019
1 parent 0d8b2e0 commit fc797d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/php/modules/theme-tools/test_functions.devicepx.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public function test_devicepx_can_be_enabled() {

jetpack_devicepx_init();

$this->assertTrue(
$this->assertEquals(
10,
has_action( 'wp_enqueue_scripts', 'jetpack_devicepx_enqueue' ),
'devicepx script has been enqueued'
);
Expand Down

0 comments on commit fc797d3

Please sign in to comment.