From 76cdd6dce22e06a8e9071043dd19f4bcc4747f43 Mon Sep 17 00:00:00 2001 From: Gennady Kovshenin Date: Thu, 24 Oct 2019 17:46:46 +0300 Subject: [PATCH] Finalize #1345 --- tests/unit-tests/GravityView_Roles_Capabilities_Test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit-tests/GravityView_Roles_Capabilities_Test.php b/tests/unit-tests/GravityView_Roles_Capabilities_Test.php index 440e06d68f..4d143470f4 100644 --- a/tests/unit-tests/GravityView_Roles_Capabilities_Test.php +++ b/tests/unit-tests/GravityView_Roles_Capabilities_Test.php @@ -155,6 +155,8 @@ public function test_has_cap_user_id_parameter() { $this->assertEquals( $zero, wp_get_current_user() ); + add_filter( 'gravityview/security/require_unfiltered_html', '__return_false' ); + foreach( $this->default_roles as $role ) { $user_id = $this->factory->user->create( array( @@ -171,6 +173,8 @@ public function test_has_cap_user_id_parameter() { $this->assertEquals( $zero, wp_get_current_user() ); } + remove_filter( 'gravityview/security/require_unfiltered_html', '__return_false' ); + $this->assertEquals( $zero, wp_get_current_user() ); }