Skip to content

Commit

Permalink
Finalize #1345
Browse files Browse the repository at this point in the history
  • Loading branch information
soulseekah committed Oct 24, 2019
1 parent 2c41359 commit 76cdd6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit-tests/GravityView_Roles_Capabilities_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() );
}

Expand Down

0 comments on commit 76cdd6d

Please sign in to comment.