2018-02-07 05:04:28 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class InstallCest
|
|
|
|
{
|
|
|
|
public function _before(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function _after(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// tests
|
2018-02-08 05:04:42 -06:00
|
|
|
public function installWelcomePageContainsExpectedContent(AcceptanceTester $I)
|
2018-02-07 05:04:28 -06:00
|
|
|
{
|
2018-02-08 05:04:42 -06:00
|
|
|
$I->amOnPage('/install.php');
|
2018-02-16 13:34:08 -08:00
|
|
|
$I->see("e107 Installation :: Step 1");
|
|
|
|
$I->see("Language Selection");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function installStep1ToStep2(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$I->amOnPage('/install.php');
|
2018-02-16 15:42:29 -08:00
|
|
|
$I->wantTo("Verify Proceed to Step 2 of the Installation");
|
2018-02-16 13:34:08 -08:00
|
|
|
$I->selectOption("language", 'English');
|
|
|
|
$I->click('start');
|
|
|
|
$I->see("MySQL Server Details", 'h3');
|
2018-02-07 05:04:28 -06:00
|
|
|
}
|
2018-02-16 15:42:29 -08:00
|
|
|
|
|
|
|
public function installStep2ToStep3(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$I->amOnPage('/install.php');
|
|
|
|
$I->wantTo("Verify Proceed to Step 3 of the Installation");
|
|
|
|
$this->installStep1ToStep2($I);
|
|
|
|
|
|
|
|
$config = $I->getConfig();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ....
|
|
|
|
}
|
2018-02-07 05:04:28 -06:00
|
|
|
}
|