Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Nov 26, 2024
1 parent 2ee3412 commit 4d54c46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/php/TestQueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,12 @@ public function testIsQueryErrorWithStatusCode( $expected, $status_code ) {
*/
public function testEpDisableQueryLoggingFilter() {
$query_logger = $this->getMockBuilder( QueryLogger::class )
->setMethods( [ 'add_query_log' ] )
->getMock();
->setMethods( [ 'add_query_log' ] )
->getMock();

// Add the `queries` property to the mock object
$reflection = new \ReflectionClass( $query_logger );
$property = $reflection->getProperty( 'queries' );
$property = $reflection->getProperty( 'queries' );
$property->setAccessible( true );
$property->setValue( $query_logger, [] );

Expand Down

0 comments on commit 4d54c46

Please sign in to comment.