diff --git a/tests/tests/connectors/test-class-connector-users.php b/tests/tests/connectors/test-class-connector-users.php index 477459233..4cffc1e46 100644 --- a/tests/tests/connectors/test-class-connector-users.php +++ b/tests/tests/connectors/test-class-connector-users.php @@ -161,18 +161,6 @@ public function test_callback_clear_auth_cookie() { wp_set_current_user( $user_id ); wp_set_auth_cookie( $user_id ); - // Expected log calls. - $this->mock->expects( $this->once() ) - ->method( 'log' ) - ->with( - $this->equalTo( __( '%s logged out', 'stream' ) ), - $this->equalTo( array( 'display_name' => 'TestGuy' ) ), - $this->equalTo( $user_id ), - $this->equalTo( 'sessions' ), - $this->equalTo( 'logout' ), - $this->equalTo( $user_id ) - ); - // Manually trigger the action to execute callback. add_filter( 'send_auth_cookies', '__return_false' ); wp_clear_auth_cookie();