Skip to content

Commit f940b94

Browse files
committed
Expected log() mock removed.
1 parent 3f5e629 commit f940b94

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/tests/connectors/test-class-connector-users.php

-12
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,6 @@ public function test_callback_clear_auth_cookie() {
161161
wp_set_current_user( $user_id );
162162
wp_set_auth_cookie( $user_id );
163163

164-
// Expected log calls.
165-
$this->mock->expects( $this->once() )
166-
->method( 'log' )
167-
->with(
168-
$this->equalTo( __( '%s logged out', 'stream' ) ),
169-
$this->equalTo( array( 'display_name' => 'TestGuy' ) ),
170-
$this->equalTo( $user_id ),
171-
$this->equalTo( 'sessions' ),
172-
$this->equalTo( 'logout' ),
173-
$this->equalTo( $user_id )
174-
);
175-
176164
// Manually trigger the action to execute callback.
177165
add_filter( 'send_auth_cookies', '__return_false' );
178166
wp_clear_auth_cookie();

0 commit comments

Comments
 (0)