mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Added Voux install test.
This commit is contained in:
parent
d22a25c877
commit
20ae4f75e6
@ -47,15 +47,15 @@ class InstallCest
|
||||
|
||||
}
|
||||
|
||||
/* public function installLandingZero(AcceptanceTester $I)
|
||||
public function installVoux(AcceptanceTester $I)
|
||||
{
|
||||
$I->wantTo("Install e107 with landingzero");
|
||||
$this->installe107($I, array('sitetheme'=>'landingzero'));
|
||||
$I->wantTo("Install e107 with Voux theme and db starting with digits");
|
||||
$this->installe107($I, array('sitetheme'=>'voux', 'db'=>'123xyz'));
|
||||
$this->checkAdminButtonWelcomeMessage($I);
|
||||
$this->testNoUpdatesRequired($I);
|
||||
$this->checkTinyMceIsInstalled($I);
|
||||
|
||||
}*/
|
||||
}
|
||||
|
||||
private function installe107(AcceptanceTester $I, $params = array())
|
||||
{
|
||||
@ -71,12 +71,18 @@ class InstallCest
|
||||
|
||||
$db = $I->getDbModule();
|
||||
|
||||
$database = !empty($params['db']) ? $params['db'] : $db->_getDbName();
|
||||
|
||||
$I->fillField('server', $db->_getDbHostname());
|
||||
$I->fillField('name', $db->_getDbUsername());
|
||||
$I->fillField('password', $db->_getDbPassword());
|
||||
$I->fillField('db', $db->_getDbName());
|
||||
$I->fillField('db', $database);
|
||||
|
||||
if(empty($params['db']))
|
||||
{
|
||||
$I->uncheckOption('createdb');
|
||||
}
|
||||
|
||||
$I->uncheckOption('createdb');
|
||||
$I->click('submit');
|
||||
|
||||
// Step 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user