mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Update acceptance test for BS5.
This commit is contained in:
parent
2f6dca824f
commit
dd7af9b222
@ -176,6 +176,7 @@
|
||||
'social' => 'social',
|
||||
'rss_menu' => 'rss_menu',
|
||||
'user' => 'user',
|
||||
'gallery'=>'gallery',
|
||||
)]]></core>
|
||||
<core name="link_replace">0</core>
|
||||
<core name="link_text"></core>
|
||||
|
@ -28,9 +28,10 @@ class InstallCest
|
||||
$this->checkAdminButtonWelcomeMessage($I);
|
||||
$this->testNoUpdatesRequired($I);
|
||||
$this->checkTinyMceIsInstalled($I);
|
||||
$this->checkBootstrap5Navigation($I);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
public function installBootstrap3(AcceptanceTester $I)
|
||||
{
|
||||
$I->wantTo("Install e107 with bootstrap3");
|
||||
@ -45,7 +46,7 @@ class InstallCest
|
||||
$I->see("United States");
|
||||
$I->see("Blue");
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
public function installVoux(AcceptanceTester $I)
|
||||
{
|
||||
@ -180,6 +181,18 @@ class InstallCest
|
||||
$I->see("Paste as text by default");
|
||||
}
|
||||
|
||||
private function checkBootstrap5Navigation(AcceptanceTester $I)
|
||||
{
|
||||
$I->amOnPage('/article-1');
|
||||
$I->see('Chapter 1','a');
|
||||
|
||||
$I->amOnPage('/gallery/gallery-1');
|
||||
$I->see('horse');
|
||||
|
||||
$I->amOnPage('/terms-of-use');
|
||||
$I->see('Terms of Use','.breadcrumb-item');
|
||||
}
|
||||
|
||||
|
||||
private function checkAdminButtonWelcomeMessage(AcceptanceTester $I)
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ USA',
|
||||
'hours' => '',
|
||||
'message' => '',
|
||||
)]]></core>
|
||||
<core name="contact_visibility">253</core>
|
||||
<core name="contact_visibility">253</core>
|
||||
<core name="news_cats">0</core>
|
||||
<core name="news_default_template">list</core>
|
||||
<core name="news_editauthor">255</core>
|
||||
|
@ -1781,10 +1781,11 @@ if($this->pdo == true)
|
||||
// Install Theme-required plugins
|
||||
if(vartrue($this->previous_steps['install_plugins']) && ($themeInfo = $this->get_theme_xml($this->previous_steps['prefs']['sitetheme'])) && isset($themeInfo['plugins']['plugin']))
|
||||
{
|
||||
$themeName = $this->previous_steps['prefs']['sitetheme'];
|
||||
foreach($themeInfo['plugins']['plugin'] as $k=>$plug)
|
||||
{
|
||||
$this->install_plugin($plug['@attributes']['name']);
|
||||
installLog::add('Theme-related plugin installed: '.$plug['@attributes']['name']);
|
||||
installLog::add('Theme-related ('.$themeName.') plugin installed: '.$plug['@attributes']['name']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user