‪TYPO3CMS  11.5
ConfigurationModuleProviderCest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
30  public function ‪_before(‪ApplicationTester $I): void
31  {
32  $I->useExistingSession('admin');
33  $I->scrollTo('#system_config');
34  $I->see('Configuration', '#system_config');
35  $I->click('#system_config');
36  $I->switchToContentFrame();
37  }
38 
43  {
44  // Module can be accessed
45  $I->see('Configuration', 'h1');
46 
47  // Sorting is applied and TYPO3_CONF_VARS is the default provider to display
48  $I->see('$GLOBALS[\'TYPO3_CONF_VARS\'] (Global Configuration)', 'h2');
49 
50  // Middlewares provider exists
51  $I->selectOption('select[name=tree]', 'HTTP Middlewares (PSR-15)');
52 
53  // Middleware provider can be loaded
54  $I->waitForElementVisible('#ConfigurationView');
55  $I->see('HTTP Middlewares (PSR-15)', 'h2');
56 
57  // Tree search can be applied
58  $I->fillField('#lowlevel-searchString', '\/authentication$');
59  $I->click('#lowlevel-config button.dropdown-toggle');
60  $I->waitForElementVisible('#lowlevel-config .dropdown-menu');
61  $I->checkOption('#lowlevel-regexSearch');
62  $I->click('#lowlevel-config button[type=submit]');
63 
64  // Correct tree with search options present and active results is loaded
65  $I->waitForElementVisible('#ConfigurationView');
66  $I->see('HTTP Middlewares (PSR-15)', 'h2');
67  $I->seeElement('#lowlevel-searchString', ['value' => '\/authentication$']);
68  $I->seeCheckboxIsChecked('#lowlevel-regexSearch');
69  $I->seeElement('li.active');
70  }
71 
76  {
77  $I->selectOption('select[name=tree]', '$GLOBALS[\'TYPO3_CONF_VARS\'] (Global Configuration)');
78  $I->click('.list-tree > li:first-child .list-tree-control');
79  $I->see('checkStoredRecordsLoose', '.list-tree-group');
80  $I->see('BE', '.active > .list-tree-group');
81  }
82 
87  {
88  foreach ($this->‪dropDownPagesDataProvider() as $item) {
89  $I->selectOption('select[name=tree]', $item);
90  $I->see($item, 'h2');
91  }
92  }
93 
94  protected function ‪dropDownPagesDataProvider(): array
95  {
96  return [
97  '$GLOBALS[\'TYPO3_CONF_VARS\'] (Global Configuration)',
98  '$GLOBALS[\'TCA\'] (Table configuration array)',
99  '$GLOBALS[\'TCA_DESCR\'] (Table Help Description)',
100  '$GLOBALS[\'T3_SERVICES\'] (Registered Services)',
101  '$GLOBALS[\'TBE_MODULES\'] (BE Modules)',
102  '$GLOBALS[\'TBE_MODULES_EXT\'] (BE Modules Extensions)',
103  '$GLOBALS[\'TBE_STYLES\'] (Skinning Styles)',
104  '$GLOBALS[\'TYPO3_USER_SETTINGS\'] (User Settings Configuration)',
105  '$GLOBALS[\'PAGES_TYPES\'] (Table permissions by page type)',
106  '$GLOBALS[\'BE_USER\']->uc (User Settings)',
107  '$GLOBALS[\'BE_USER\']->getTSConfig() (User TSconfig)',
108  'Backend Routes',
109  'HTTP Middlewares (PSR-15)',
110  'Site Configuration',
111  'Event Listeners (PSR-14)',
112  'MFA providers',
113  ];
114  }
115 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest\seeAllPagesInDropDown
‪seeAllPagesInDropDown(ApplicationTester $I)
Definition: ConfigurationModuleProviderCest.php:86
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest
Definition: ConfigurationModuleProviderCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest\_before
‪_before(ApplicationTester $I)
Definition: ConfigurationModuleProviderCest.php:30
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest\canOpenTreeNodeAndScrollTo
‪canOpenTreeNodeAndScrollTo(ApplicationTester $I)
Definition: ConfigurationModuleProviderCest.php:75
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest\dropDownPagesDataProvider
‪dropDownPagesDataProvider()
Definition: ConfigurationModuleProviderCest.php:94
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule
Definition: ConfigurationModuleProviderCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\ConfigurationModule\ConfigurationModuleProviderCest\selectAndDisplayConfiguration
‪selectAndDisplayConfiguration(ApplicationTester $I)
Definition: ConfigurationModuleProviderCest.php:42