Skip to content

Commit

Permalink
Expected log() mock removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Dec 11, 2020
1 parent 3f5e629 commit f940b94
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/tests/connectors/test-class-connector-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f940b94

Please sign in to comment.