diff --git a/projects/packages/google-analytics/tests/php/test-ga-manager.php b/projects/packages/google-analytics/tests/php/test-ga-manager.php index 8c87ef8bb648a..31721b3542c23 100644 --- a/projects/packages/google-analytics/tests/php/test-ga-manager.php +++ b/projects/packages/google-analytics/tests/php/test-ga-manager.php @@ -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();