20 use TYPO3\CMS\Extbase\Service\TypoScriptService;
34 $backendConfigurationManager = $this->getAccessibleMock(BackendConfigurationManager::class, [
'getTypoScriptSetup']);
35 $mockTypoScriptService = $this->getMockBuilder(TypoScriptService::class)->getMock();
36 $backendConfigurationManager->_set(
'typoScriptService', $mockTypoScriptService);
48 $actualResult = $backendConfigurationManager->_call(
'getCurrentPageId');
49 $this->assertEquals(123, $actualResult);
59 $backendConfigurationManager = $this->getAccessibleMock(BackendConfigurationManager::class, [
'getTypoScriptSetup']);
60 $mockTypoScriptService = $this->getMockBuilder(TypoScriptService::class)->getMock();
61 $backendConfigurationManager->_set(
'typoScriptService', $mockTypoScriptService);
72 $actualResult = $backendConfigurationManager->_call(
'getCurrentPageId');
73 $this->assertEquals(1, $actualResult);
83 $backendConfigurationManager = $this->getAccessibleMock(BackendConfigurationManager::class, [
'getTypoScriptSetup']);
84 $mockTypoScriptService = $this->getMockBuilder(TypoScriptService::class)->getMock();
85 $backendConfigurationManager->_set(
'typoScriptService', $mockTypoScriptService);
88 $actualResult = $backendConfigurationManager->_call(
'getCurrentPageId');
89 $this->assertEquals($expectedResult, $actualResult);