Skip to content

Commit

Permalink
Replace deprecated method in unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymitr committed May 7, 2024
1 parent 0d2c36c commit 79414c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function () {

// Mock `Jetpack_Google_Analytics_Legacy` instance to disable the constructor class.
$instance = $this->getMockBuilder( Legacy::class )
->setMethods( null )
->onlyMethods( array() )
->disableOriginalConstructor()
->getMock();

Expand Down

0 comments on commit 79414c8

Please sign in to comment.