‪TYPO3CMS  10.4
LoginCest.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 
22 
24 {
29  {
30  $I->amGoingTo('assert the install tool is locked in the first place');
31  $I->see('The Install Tool is locked');
32  $I->assertFileNotExists(self::ENABLE_INSTALL_TOOL_FILEPATH);
33 
34  $I->amGoingTo('lock the tool without logging in');
35  $I->writeToFile(self::ENABLE_INSTALL_TOOL_FILEPATH, '');
36  $I->seeFileFound(‪Environment::getProjectPath() . '/' . self::ENABLE_INSTALL_TOOL_FILEPATH);
37  $I->reloadPage();
38  $I->waitForElementVisible('#t3-install-form-password');
39  $I->see('Login to TYPO3 Install Tool');
40  $I->click('Lock Install Tool again');
41  $I->see('The Install Tool is locked');
42  $I->dontSeeFileFound(‪Environment::getProjectPath() . '/' . self::ENABLE_INSTALL_TOOL_FILEPATH);
43 
44  $I->amGoingTo('log into Install Tool');
45  $this->‪logIntoInstallTool($I);
46 
47  $I->amGoingTo('assert page Maintenance contains the 8 expected cards');
48  $I->click('Maintenance');
49  $I->see('Maintenance', 'h1');
50  $I->see('Flush TYPO3 and PHP Cache', 'h1.card-title');
51  $I->see('Analyze Database Structure', 'h1.card-title');
52  $I->see('Remove Temporary Assets', 'h1.card-title');
53  $I->see('Rebuild PHP Autoload Information', 'h1.card-title');
54  $I->see('Clear Persistent Database Tables', 'h1.card-title');
55  $I->see('Create Administrative User', 'h1.card-title');
56  $I->see('Reset Backend User Preferences', 'h1.card-title');
57  $I->see('Manage Language Packs', 'h1.card-title');
58  $I->seeNumberOfElements('.card', 8);
59 
60  $I->amGoingTo('assert page Settings contains the 6 expected cards');
61  $I->click('Settings');
62  $I->see('Settings', 'h1');
63  $I->see('Extension Configuration', 'h1.card-title');
64  $I->see('Change Install Tool Password', 'h1.card-title');
65  $I->see('Manage System Maintainers', 'h1.card-title');
66  $I->see('Configuration Presets', 'h1.card-title');
67  $I->see('Feature Toggles', 'h1.card-title');
68  $I->see('Configure Installation-Wide Options', 'h1.card-title');
69  $I->seeNumberOfElements('.card', 6);
70 
71  $I->amGoingTo('assert page Upgrade contains the 7 expected cards');
72  $I->click('Upgrade');
73  $I->see('Upgrade', 'h1');
74  $I->see('Update TYPO3 Core', 'h1.card-title');
75  $I->see('Upgrade Wizard', 'h1.card-title');
76  $I->see('View Upgrade Documentation', 'h1.card-title');
77  $I->see('Check TCA in ext_tables.php', 'h1.card-title');
78  $I->see('Check for Broken Extensions', 'h1.card-title');
79  $I->see('Check TCA Migrations', 'h1.card-title');
80  $I->see('Scan Extension Files', 'h1.card-title');
81  $I->seeNumberOfElements('.card', 7);
82 
83  $I->amGoingTo('assert page Environment contains the 6 expected cards');
84  $I->click('Environment');
85  $I->see('Environment', 'h1');
86  $I->see('Environment Overview', 'h1.card-title');
87  $I->see('Environment Status', 'h1.card-title');
88  $I->see('Directory Status', 'h1.card-title');
89  $I->see('PHP Info', 'h1.card-title');
90  $I->see('Test Mail Setup', 'h1.card-title');
91  $I->see('Image Processing', 'h1.card-title');
92  $I->seeNumberOfElements('.card', 6);
93  }
94 }
‪TYPO3\CMS\Core\Tests\Acceptance\Backend\InstallTool\LoginCest\installToolLogin
‪installToolLogin(BackendTester $I)
Definition: LoginCest.php:28
‪TYPO3\CMS\Core\Core\Environment\getProjectPath
‪static string getProjectPath()
Definition: Environment.php:169
‪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\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\LoginCest
Definition: LoginCest.php:24
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:40