diff --git a/Tests/Unit/View/TemplatePathsTest.php b/Tests/Unit/View/TemplatePathsTest.php index 511d18a6..30c1b47b 100644 --- a/Tests/Unit/View/TemplatePathsTest.php +++ b/Tests/Unit/View/TemplatePathsTest.php @@ -102,7 +102,7 @@ public function pathSetterMethodSortsPathsByKeyDescending($method, array $paths, */ public function getContextSpecificViewConfigurationSortsTypoScriptConfiguredPathsCorrectlyInFrontendMode(): void { - $configurationManager = $this->getMockBuilder(ConfigurationManagerInterface::class)->getMockForAbstractClass(); + $configurationManager = $this->createMock(ConfigurationManagerInterface::class); $configurationManager->expects(self::once())->method('getConfiguration')->willReturn([ 'plugin.' => [ 'tx_test.' => [ @@ -159,7 +159,7 @@ public function getContextSpecificViewConfigurationSortsTypoScriptConfiguredPath */ public function getContextSpecificViewConfigurationSortsTypoScriptConfiguredPathsCorrectlyInBackendMode(): void { - $configurationManager = $this->getMockBuilder(ConfigurationManagerInterface::class)->getMockForAbstractClass(); + $configurationManager = $this->createMock(ConfigurationManagerInterface::class); $configurationManager->expects(self::once())->method('getConfiguration')->willReturn([ 'module.' => [ 'tx_test.' => [ @@ -216,7 +216,7 @@ public function getContextSpecificViewConfigurationSortsTypoScriptConfiguredPath */ public function getContextSpecificViewConfigurationDoesNotResolveFromTypoScriptAndDoesNotSortInUnspecifiedMode(): void { - $configurationManager = $this->getMockBuilder(ConfigurationManagerInterface::class)->getMockForAbstractClass(); + $configurationManager = $this->createMock(ConfigurationManagerInterface::class); $configurationManager->expects(self::once())->method('getConfiguration')->willReturn([ 'plugin.' => [ 'tx_test.' => [