‪TYPO3CMS  10.4
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(‪BackendTester $I)
25  {
26  parent::_before($I);
27  $this->‪logIntoInstallTool($I);
28  $I->click('Maintenance');
29  $I->see('Maintenance', 'h1');
30  }
31 
37  {
38  $I->click('Flush cache');
39  $I->waitForElementVisible('.alert-success');
40  $I->see('Caches cleared', '.alert-success h4');
41  }
42 
48  {
49  $I->click('Analyze database');
50  $I->waitForElementVisible('.modal-dialog');
51  $I->see('Analyze Database Structure', '.modal-dialog h4');
52  $I->waitForElementVisible('.callout-success');
53  $I->see('Database schema is up to date. Good job!', '.callout-success h4');
54  $I->click('.t3js-modal-close');
55  $I->waitForElementNotVisible('.modal-dialog');
56  }
57 
63  {
64  $I->click('Scan temporary files');
65  $I->waitForElementVisible('.modal-dialog');
66  $I->see('Remove Temporary Assets', '.modal-dialog h4');
67  $I->click('.t3js-modal-close');
68  $I->waitForElementNotVisible('.modal-dialog');
69  }
70 
76  {
77  $I->click('Dump autoload');
78  $I->waitForElementVisible('.alert-success');
79  $I->see('Successfully dumped class loading information for extensions.', '.alert-success h4');
80  }
81 
87  {
88  $I->click('Scan tables');
89  $I->waitForElementVisible('.modal-dialog');
90  $I->see('Clear Persistent Database Tables', '.modal-dialog h4');
91  $I->click('.t3js-modal-close');
92  $I->waitForElementNotVisible('.modal-dialog');
93  }
94 
100  {
101  $I->click('Create Administrator');
102  $I->waitForElementVisible('.modal-dialog');
103  $I->see('Create Administrative User', '.modal-dialog h4');
104  $I->click('.t3js-modal-close');
105  $I->waitForElementNotVisible('.modal-dialog');
106  }
107 
113  {
114  $I->click('Reset backend user preferences');
115  $I->waitForElementVisible('.alert-success');
116  $I->see('Reset preferences of all backend users', '.alert-success h4');
117  $I->see('Preferences of all backend users have been reset', '.alert-success p');
118  }
119 
125  {
126  $I->click('Manage languages');
127  $I->waitForElementVisible('.modal-dialog');
128  $I->see('Manage Language Packs', '.modal-dialog h4');
129  $I->waitForText('Active languages', 30, '.modal-dialog h3');
130  $I->click('.t3js-modal-close');
131  $I->waitForElementNotVisible('.modal-dialog');
132  }
133 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest
Definition: MaintenanceCest.php:23
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\removeTemporaryAssetsWorks
‪removeTemporaryAssetsWorks(BackendTester $I)
Definition: MaintenanceCest.php:62
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\dumpAutoloadWorks
‪dumpAutoloadWorks(BackendTester $I)
Definition: MaintenanceCest.php:75
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool
Definition: AbstractCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\AbstractCest
Definition: AbstractCest.php:26
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\analyzeDatabaseStructureWorks
‪analyzeDatabaseStructureWorks(BackendTester $I)
Definition: MaintenanceCest.php:47
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\manageLanguagePacksWorks
‪manageLanguagePacksWorks(BackendTester $I)
Definition: MaintenanceCest.php:124
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\createAdminUserWorks
‪createAdminUserWorks(BackendTester $I)
Definition: MaintenanceCest.php:99
‪TYPO3\CMS\Core\Tests\Acceptance\Support\BackendTester
Definition: BackendTester.php:27
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\AbstractCest\logIntoInstallTool
‪logIntoInstallTool(BackendTester $I)
Definition: AbstractCest.php:46
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\clearPersistentTablesWorks
‪clearPersistentTablesWorks(BackendTester $I)
Definition: MaintenanceCest.php:86
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\resetBackendUserPreferencesWorks
‪resetBackendUserPreferencesWorks(BackendTester $I)
Definition: MaintenanceCest.php:112
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\flushCacheWorks
‪flushCacheWorks(BackendTester $I)
Definition: MaintenanceCest.php:36
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\MaintenanceCest\_before
‪_before(BackendTester $I)
Definition: MaintenanceCest.php:24