From 79414c8c44065a0d47d153d8d915f73732db0909 Mon Sep 17 00:00:00 2001 From: sergeymitr Date: Tue, 7 May 2024 14:50:53 -0400 Subject: [PATCH] Replace deprecated method in unit tests. --- .../packages/google-analytics/tests/php/test-ga-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();