diff --git a/typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php b/typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php index f51bdf5a7e6f9a9df953dab4e62baa3deca4a646..ab62673b917e7d26bfc8bb207ceb7c340f4aca37 100644 --- a/typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php +++ b/typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php @@ -40,7 +40,7 @@ class BackendLogModuleBootstrap public function main(ServerRequestInterface $request) { $queryParams = $request->getQueryParams(); - $queryParams['tx_belog_system_beloglog']['pageId'] = $request->getQueryParams()['id'] ?? $request->getParsedBody()['id']; + $queryParams['tx_belog_system_beloglog']['pageId'] = $request->getQueryParams()['id'] ?? $request->getParsedBody()['id'] ?? 0; $queryParams['tx_belog_system_beloglog']['layout'] = 'Plain'; $request = $request->withQueryParams($queryParams); diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Info/InfoModuleCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Info/InfoModuleCest.php new file mode 100644 index 0000000000000000000000000000000000000000..dc16dff88567b146a4f13ba89886abac15cb3d6a --- /dev/null +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Info/InfoModuleCest.php @@ -0,0 +1,80 @@ +<?php + +declare(strict_types=1); + +/* + * This file is part of the TYPO3 CMS project. + * + * It is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, either version 2 + * of the License, or any later version. + * + * For the full copyright and license information, please read the + * LICENSE.txt file that was distributed with this source code. + * + * The TYPO3 project - inspiring people to share! + */ + +namespace TYPO3\CMS\Core\Tests\Acceptance\Backend\Info; + +use TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester; +use TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\PageTree; + +/** + * Tests concerning Reports Module + */ +class InfoModuleCest +{ + /** + * @param BackendTester $I + * @param PageTree $pageTree + */ + public function _before(BackendTester $I, PageTree $pageTree) + { + $I->useExistingSession('admin'); + $I->click('#web_info'); + $I->waitForElement('#typo3-pagetree-tree .nodes .node', 5); + $pageTree->openPath(['styleguide TCA demo']); + $I->switchToContentFrame(); + } + + /** + * @param BackendTester $I + */ + public function seePageTreeOverview(BackendTester $I) + { + $I->amGoingTo('select Pagetree Overview in dropdown'); + $I->selectOption('.t3-js-jumpMenuBox', 'Pagetree Overview'); + $I->see('Pagetree overview', 'h1'); + } + + /** + * @param BackendTester $I + */ + public function seeLocalizationOverview(BackendTester $I) + { + $I->amGoingTo('select Localization Overview in dropdown'); + $I->selectOption('.t3-js-jumpMenuBox', 'Localization Overview'); + $I->see('Localization overview', 'h1'); + } + + /** + * @param BackendTester $I + */ + public function seePageTsConfig(BackendTester $I) + { + $I->amGoingTo('select Page TSconfig in dropdown'); + $I->selectOption('.t3-js-jumpMenuBox', 'Page TSconfig'); + $I->see('Page TSconfig', 'h1'); + } + + /** + * @param BackendTester $I + */ + public function seeLog(BackendTester $I) + { + $I->amGoingTo('select Log in dropdown'); + $I->selectOption('.t3-js-jumpMenuBox', 'Log'); + $I->see('Administration log', 'h1'); + } +} diff --git a/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php b/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php index dfd11d1100ba637adfd2e57baee21a4866be10d7..46768676ab9ff737169cb4d3998d4da913deb63c 100644 --- a/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php +++ b/typo3/sysext/core/Tests/Acceptance/Support/Extension/BackendCoreEnvironment.php @@ -54,7 +54,8 @@ class BackendCoreEnvironment extends BackendEnvironment 'tstemplate', 'lowlevel', 'dashboard', - 'workspaces' + 'workspaces', + 'info' ], 'testExtensionsToLoad' => [ 'typo3conf/ext/styleguide' diff --git a/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php b/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php index c315fad34ea13a6d8555b5bcf0d20cdd08f4d241..ab37bf4af43551b72ce60ad6d38b920ef691706a 100644 --- a/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php +++ b/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php @@ -217,9 +217,9 @@ class InfoPageTyposcriptConfigController } $this->view->assign('csh', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', '', '|')); - $this->view->assign('tree', $tmpl->ext_getObjTree($pageTsConfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'])); + $this->view->assign('tree', $tmpl->ext_getObjTree($pageTsConfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'] ?? '0')); } - $this->view->assign('alphaSort', BackendUtility::getFuncCheck($this->id, 'SET[tsconf_alphaSort]', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'], '', '', 'id="checkTsconf_alphaSort"')); + $this->view->assign('alphaSort', BackendUtility::getFuncCheck($this->id, 'SET[tsconf_alphaSort]', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'] ?? false, '', '', 'id="checkTsconf_alphaSort"')); $this->view->assign('dropdownMenu', BackendUtility::getDropdownMenu($this->id, 'SET[tsconf_parts]', $this->pObj->MOD_SETTINGS['tsconf_parts'], $this->pObj->MOD_MENU['tsconf_parts'])); } return $this->view->render();