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