1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-22 07:47:10 +01:00
php-e107/tests/acceptance/InstallCest.php

44 lines
918 B
PHP
Raw Normal View History

<?php
class InstallCest
{
public function _before(AcceptanceTester $I)
{
}
public function _after(AcceptanceTester $I)
{
}
// tests
public function installWelcomePageContainsExpectedContent(AcceptanceTester $I)
{
$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-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();
// ....
}
}