Skip to content

Commit

Permalink
Adapt to upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed May 12, 2024
1 parent e186c0c commit b22c21e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/midcom/bundle/dependencyInjection/authPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions test/midcom/bundle/dependencyInjection/cachePassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion test/midcom/bundle/dependencyInjection/indexerPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions test/midcom/bundle/dependencyInjection/loggerPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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);
}
Expand Down

0 comments on commit b22c21e

Please sign in to comment.