Skip to content

Commit

Permalink
[TASK] Use first-class callables in EXT:extensionmanager unit tests
Browse files Browse the repository at this point in the history
see https://www.php.net/manual/en/functions.first_class_callable_syntax.php

Resolves: #100315
Releases: main
Change-Id: Ib915e7329d2a803dca241f533e0297c4cd13e204
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78270
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
  • Loading branch information
oliverklee authored and nhovratov committed Mar 27, 2023
1 parent e73800f commit 4f94e4f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -93,11 +93,11 @@ protected function setUp(): void
$this->installMock
->method('getExtensionArray')
->with($this->extensionKey)
->willReturnCallback([$this, 'getExtensionData']);
->willReturnCallback($this->getExtensionData(...));
$this->installMock
->method('enrichExtensionWithDetails')
->with($this->extensionKey)
->willReturnCallback([$this, 'getExtensionData']);
->willReturnCallback($this->getExtensionData(...));

$cacheManagerMock = $this->createMock(CacheManager::class);
$cacheManagerMock->method('getCache')->with('core')->willReturn(new NullFrontend('core'));
Expand Down

0 comments on commit 4f94e4f

Please sign in to comment.