You are here

function sweaverThemeSettings::testScenarioA in Sweaver 7

Same name and namespace in other branches
  1. 6 tests/sweaver.themesettings.test \sweaverThemeSettings::testScenarioA()

Scenario A.

1: Save realize favicon, google logo & Site name off 2: Publish 1 3: Delete 1

File

tests/sweaver.themesettings.test, line 461
Advanced tests for sweaver editor + theme settings.

Class

sweaverThemeSettings
@file Advanced tests for sweaver editor + theme settings.

Code

function testScenarioA() {
  $scenario = 'A';
  $scenario_action = 'Save ' . $scenario;
  $configuration = $this
    ->buildStyleConfiguration($scenario_action, '30', 1, TRUE, 'google.png', 'realize.ico', 0, FALSE);
  $this
    ->sweaverSaveStyle($scenario_action, $configuration, 1, FALSE, FALSE, FALSE, FALSE);
  $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, 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 = 'Delete ' . $scenario;
  $configuration = $this
    ->buildStyleConfiguration($scenario_action, 0, FALSE);
  $this
    ->sweaverDeleteStyle($scenario_action, $configuration, 1);
  $this
    ->assertLogoFavicon($scenario_action, 1, TRUE);
}