‪TYPO3CMS  ‪main
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 
20 use Codeception\Attribute\Env;
22 
24 {
25  public function ‪_before(‪ApplicationTester $I): void
26  {
27  parent::_before($I);
28  $this->‪logIntoInstallTool($I);
29  $I->click('Maintenance');
30  $I->see('Maintenance', 'h1');
31  }
32 
33  public function ‪flushCacheWorks(‪ApplicationTester $I): void
34  {
35  $I->click('Flush cache');
36  $I->waitForElementVisible('.alert-success');
37  $I->see('Caches cleared', '.alert-success h4');
38  }
39 
41  {
42  $I->click('Analyze database…');
43  $I->waitForElementVisible('.modal-dialog');
44  $I->see('Analyze Database Structure', '.modal-dialog h4');
45  $I->waitForElementVisible('.callout-success');
46  $I->see('Database schema is up to date. Good job!', '.callout-success h4');
47  $I->click('.t3js-modal-close');
48  $I->waitForElementNotVisible('.modal-dialog');
49  }
50 
52  {
53  $I->click('Scan temporary files…');
54  $I->waitForElementVisible('.modal-dialog');
55  $I->see('Remove Temporary Assets', '.modal-dialog h4');
56  $I->click('.t3js-modal-close');
57  $I->waitForElementNotVisible('.modal-dialog');
58  }
59 
60  #[Env('classic')]
61  public function ‪dumpAutoloadWorks(‪ApplicationTester $I): void
62  {
63  $I->click('Dump autoload');
64  $I->waitForElementVisible('.alert-success');
65  $I->see('Successfully dumped class loading information for extensions.', '.alert-success h4');
66  }
67 
69  {
70  $I->click('Scan tables…');
71  $I->waitForElementVisible('.modal-dialog');
72  $I->see('Clear Persistent Database Tables', '.modal-dialog h4');
73  $I->click('.t3js-modal-close');
74  $I->waitForElementNotVisible('.modal-dialog');
75  }
76 
78  {
79  $I->click('Create Administrator…');
80  $I->waitForElementVisible('.modal-dialog');
81  $I->see('Create Administrative User', '.modal-dialog h4');
82  $I->click('.t3js-modal-close');
83  $I->waitForElementNotVisible('.modal-dialog');
84  }
85 
87  {
88  $I->click('Reset backend user preferences');
89  $I->waitForElementVisible('.alert-success');
90  $I->see('Reset preferences of all backend users', '.alert-success h4');
91  $I->see('Preferences of all backend users have been reset', '.alert-success p');
92  }
93 
95  {
96  $I->click('Manage languages…');
97  $I->waitForElementVisible('.modal-dialog');
98  $I->see('Manage Language Packs', '.modal-dialog h4');
99  $I->waitForText('Active languages', 30, '.modal-dialog h3');
100  $I->click('.t3js-modal-close');
101  $I->waitForElementNotVisible('.modal-dialog');
102  }
103 }
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\clearPersistentTablesWorks
‪clearPersistentTablesWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:68
‪TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester
Definition: ApplicationTester.php:28
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\dumpAutoloadWorks
‪dumpAutoloadWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:61
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\createAdminUserWorks
‪createAdminUserWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:77
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\AbstractCest\logIntoInstallTool
‪logIntoInstallTool(ApplicationTester $I)
Definition: AbstractCest.php:57
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\manageLanguagePacksWorks
‪manageLanguagePacksWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:94
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\resetBackendUserPreferencesWorks
‪resetBackendUserPreferencesWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:86
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool
Definition: AbstractCest.php:18
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest
Definition: MaintenanceCest.php:24
‪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:40
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\removeTemporaryAssetsWorks
‪removeTemporaryAssetsWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:51
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\_before
‪_before(ApplicationTester $I)
Definition: MaintenanceCest.php:25
‪TYPO3\CMS\Core\Tests\Acceptance\Application\InstallTool\MaintenanceCest\flushCacheWorks
‪flushCacheWorks(ApplicationTester $I)
Definition: MaintenanceCest.php:33