Skip to content

Commit

Permalink
Remove filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Mar 26, 2024
1 parent d0c9202 commit 3793d0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/ActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ActionsTest extends TestCase {
*/
public function testRegisterAssets() {
$class = new Actions();

add_filter( 'plausible_analytics_settings', [ $this, 'enableProxy' ] );
add_filter( 'plausible_analytics_settings', [ $this, 'setDomain' ] );

Expand All @@ -28,5 +28,8 @@ public function testRegisterAssets() {
$this->expectOutputContains( Helpers::get_rest_endpoint() );

wp_print_head_scripts();

remove_filter( 'plausible_analytics_settings', [ $this, 'enableProxy' ] );
remove_filter( 'plausible_analytics_settings', [ $this, 'setDomain' ] );
}
}

0 comments on commit 3793d0a

Please sign in to comment.