From b22c21e804ec1f9a925aa3d5c8dfcc62ddeff813 Mon Sep 17 00:00:00 2001 From: flack Date: Sun, 12 May 2024 13:06:05 +0200 Subject: [PATCH] Adapt to upstream change --- test/midcom/bundle/dependencyInjection/authPassTest.php | 4 ++-- test/midcom/bundle/dependencyInjection/cachePassTest.php | 4 ++-- test/midcom/bundle/dependencyInjection/indexerPassTest.php | 2 +- test/midcom/bundle/dependencyInjection/loggerPassTest.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/midcom/bundle/dependencyInjection/authPassTest.php b/test/midcom/bundle/dependencyInjection/authPassTest.php index ef08378e41..c3183c856b 100644 --- a/test/midcom/bundle/dependencyInjection/authPassTest.php +++ b/test/midcom/bundle/dependencyInjection/authPassTest.php @@ -33,13 +33,13 @@ public function test_process() ->with($this->logicalOr( $this->equalTo('midcom.auth_backend'), $this->equalTo('midcom.auth_frontend'))) - ->will($this->returnCallback([$this, 'get_config'])); + ->willReturnCallback([$this, 'get_config']); $container ->expects($this->once()) ->method('getDefinition') ->with('auth.frontend') - ->will($this->returnCallback([$this, 'get_definition_mock'])); + ->willReturnCallback([$this, 'get_definition_mock']); (new authPass)->process($container); } diff --git a/test/midcom/bundle/dependencyInjection/cachePassTest.php b/test/midcom/bundle/dependencyInjection/cachePassTest.php index 1ecee95551..d32d4702a8 100644 --- a/test/midcom/bundle/dependencyInjection/cachePassTest.php +++ b/test/midcom/bundle/dependencyInjection/cachePassTest.php @@ -36,13 +36,13 @@ public function test_process_nap_apcu() ->expects($this->exactly(7)) ->method('getParameter') ->with($this->logicalOr('midcom.cache_module_content_backend', 'midcom.cache_module_memcache_backend', 'midcom.cache_module_memcache_backend_config', 'kernel.cache_dir')) - ->will($this->returnCallback([$this, 'get_config'])); + ->willReturnCallback([$this, 'get_config']); $container ->expects($this->exactly(5)) ->method('getDefinition') ->with($this->logicalOr('cache', 'cache.module.memcache.backend', 'cache.module.nap.backend')) - ->will($this->returnCallback([$this, 'get_definition_mock'])); + ->willReturnCallback([$this, 'get_definition_mock']); (new cachePass)->process($container); } diff --git a/test/midcom/bundle/dependencyInjection/indexerPassTest.php b/test/midcom/bundle/dependencyInjection/indexerPassTest.php index 6065d5053d..0e34882503 100644 --- a/test/midcom/bundle/dependencyInjection/indexerPassTest.php +++ b/test/midcom/bundle/dependencyInjection/indexerPassTest.php @@ -44,7 +44,7 @@ public function test_process() $this->equalTo('indexer'), $this->equalTo('indexer.backend'), $this->equalTo('event_dispatcher'))) - ->will($this->returnCallback([$this, 'get_definition_mock'])); + ->willReturnCallback([$this, 'get_definition_mock']); (new indexerPass)->process($container); } diff --git a/test/midcom/bundle/dependencyInjection/loggerPassTest.php b/test/midcom/bundle/dependencyInjection/loggerPassTest.php index 326494f536..8bae00e5ce 100644 --- a/test/midcom/bundle/dependencyInjection/loggerPassTest.php +++ b/test/midcom/bundle/dependencyInjection/loggerPassTest.php @@ -42,7 +42,7 @@ public function test_process() $this->equalTo('kernel.logs_dir'), $this->equalTo('midcom.log_filename'), $this->equalTo('midcom.log_level'))) - ->will($this->returnCallback([$this, 'get_config'])); + ->willReturnCallback([$this, 'get_config']); $container ->expects($this->once()) @@ -55,7 +55,7 @@ public function test_process() ->with($this->logicalOr( $this->equalTo('logger.filehandler'), $this->equalTo('controller_resolver'))) - ->will($this->returnCallback([$this, 'get_definition_mock'])); + ->willReturnCallback([$this, 'get_definition_mock']); (new loggerPass)->process($container); }