function sweaverThemeSettings::testScenarioC in Sweaver 7
Same name and namespace in other branches
- 6 tests/sweaver.themesettings.test \sweaverThemeSettings::testScenarioC()
Scenario C.
1: Save realize favicon, google logo & Site name off 2: Publish 1 (without logo & realize). 3: Delete 1
File
- tests/
sweaver.themesettings.test, line 537 - Advanced tests for sweaver editor + theme settings.
Class
- sweaverThemeSettings
- @file Advanced tests for sweaver editor + theme settings.
Code
function testScenarioC() {
$scenario = 'C';
$scenario_action = 'Save ' . $scenario;
$configuration = $this
->buildStyleConfiguration($scenario_action, '30', 1, TRUE, 'google.png', 'realize.ico');
$this
->sweaverSaveStyle($scenario_action, $configuration, 1);
$this
->assertLogoFavicon($scenario_action, 1, FALSE, TRUE, FALSE, 'png');
$this
->assertThemeSettings($scenario_action, 1, TRUE, TRUE);
$scenario_action = 'Publish ' . $scenario;
$configuration = $this
->buildStyleConfiguration($scenario_action, '30', 1, FALSE, 'png', 'ico');
$this
->sweaverPublishStyle($scenario_action, $configuration, 1);
$this
->assertLogoFavicon($scenario_action, 1, FALSE, TRUE, TRUE, 'png');
$this
->assertThemeSettings($scenario_action, 1, FALSE, FALSE, 'png', 'ico');
$scenario_action = 'Delete ' . $scenario;
$configuration = $this
->buildStyleConfiguration($scenario_action, 0, 1, FALSE);
$this
->sweaverDeleteStyle($scenario_action, $configuration, 1);
$this
->assertLogoFavicon($scenario_action, 1, TRUE);
}