‪TYPO3CMS  11.5
MaintenanceCest.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 
23 {
24  public function ‪_before(‪ApplicationTester $I): void
25  {
26  parent::_before($I);
27  $this->‪logIntoInstallTool($I);
28  $I->click('Maintenance');
29  $I->see('Maintenance', 'h1');
30  }
31 
35  public function ‪flushCacheWorks(‪ApplicationTester $I): void
36  {
37  $I->click('Flush cache');
38  $I->waitForElementVisible('.alert-success');
39  $I->see('Caches cleared', '.alert-success h4');
40  }
41 
46  {
47  $I->click('Analyze database');
48  $I->waitForElementVisible('.modal-dialog');
49  $I->see('Analyze Database Structure', '.modal-dialog h4');
50  $I->waitForElementVisible('.callout-success');
51  $I->see('Database schema is up to date. Good job!', '.callout-success h4');
52  $I->click('.t3js-modal-close');
53  $I->waitForElementNotVisible('.modal-dialog');
54  }
55 
60  {
61  $I->click('Scan temporary files');
62  $I->waitForElementVisible('.modal-dialog');
63  $I->see('Remove Temporary Assets', '.modal-dialog h4');
64  $I->click('.t3js-modal-close');
65  $I->waitForElementNotVisible('.modal-dialog');
66  }
67 
72  public function ‪dumpAutoloadWorks(‪ApplicationTester $I): void
73  {
74  $I->click('Dump autoload');
75  $I->waitForElementVisible('.alert-success');
76  $I->see('Successfully dumped class loading information for extensions.', '.alert-success h4');
77  }
78 
83  {
84  $I->click('Scan tables');
85  $I->waitForElementVisible('.modal-dialog');
86  $I->see('Clear Persistent Database Tables', '.modal-dialog h4');
87  $I->click('.t3js-modal-close');
88  $I->waitForElementNotVisible('.modal-dialog');
89  }
90 
95  {
96  $I->click('Create Administrator');
97  $I->waitForElementVisible('.modal-dialog');
98  $I->see('Create Administrative User', '.modal-dialog h4');
99  $I->click('.t3js-modal-close');
100  $I->waitForElementNotVisible('.modal-dialog');
101  }
102 
107  {
108  $I->click('Reset backend user preferences');
109  $I->waitForElementVisible('.alert-success');
110  $I->see('Reset preferences of all backend users', '.alert-success h4');
111  $I->see('Preferences of all backend users have been reset', '.alert-success p');
112  }
113 
118  {
119  $I->click('Manage languages');
120  $I->waitForElementVisible('.modal-dialog');
121  $I->see('Manage Language Packs', '.modal-dialog h4');
122  $I->waitForText('Active languages', 30, '.modal-dialog h3');
123  $I->click('.t3js-modal-close');
124  $I->waitForElementNotVisible('.modal-dialog');
125  }
126 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\clearPersistentTablesWorks
‪clearPersistentTablesWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:82
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\dumpAutoloadWorks
‪dumpAutoloadWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:72
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\createAdminUserWorks
‪createAdminUserWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:94
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\AbstractCest\logIntoInstallTool
‪logIntoInstallTool(ApplicationTester $I)
Definition: AbstractCest.php:58
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\manageLanguagePacksWorks
‪manageLanguagePacksWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:117
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\resetBackendUserPreferencesWorks
‪resetBackendUserPreferencesWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:106
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool
Definition: AbstractCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest
Definition: MaintenanceCest.php:23
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\AbstractCest
Definition: AbstractCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\analyzeDatabaseStructureWorks
‪analyzeDatabaseStructureWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:45
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\removeTemporaryAssetsWorks
‪removeTemporaryAssetsWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:59
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\_before
‪_before(ApplicationTester $I)
Definition: MaintenanceCest.php:24
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\flushCacheWorks
‪flushCacheWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:35