You are here

deploy_auto_plan.test in Deploy - Content Staging 7.3

Same filename and directory in other branches
  1. 7.2 modules/deploy_auto_plan/deploy_auto_plan.test

Deploy Automagic Plan module tests.

File

modules/deploy_auto_plan/deploy_auto_plan.test
View source
<?php

/**
 * @file
 * Deploy Automagic Plan module tests.
 */

/**
 * Test a full deployment with the auto deployment functionality.
 */
class DeployAutoPlanTestCase extends DeployWebTestCase {
  protected $manage_add_to_plan = FALSE;
  protected $origin_modules = array(
    'entity',
    'ctools',
    'uuid',
    'deploy',
    'deploy_ui',
    'deploy_auto_plan',
    'deploy_example',
  );

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'Auto deployment setup',
      'description' => 'Test a full deployment between two sites, based on the auto deploy module.',
      'group' => 'Deployment',
    );
  }

  /**
   * {@inheritdoc}
   */
  function setUpSiteSpecifics($key) {
    if ($key == 'deploy_origin') {
      variable_set('deploy_auto_plan_name', 'deploy_example_plan');
    }
  }

  /**
   * {@inheritdoc}
   */
  function testDeployment() {
    $this
      ->runScenario('deploy_example_plan');
  }

}
class DeployAutoPlanNoDependencyPluginTestCase extends DeployAutoPlanTestCase {

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'Auto deployment setup without dependencies',
      'description' => 'Test a full deployment between two sites, based on the auto deploy module with the \'No Depenedency Iterator\' plugin.',
      'group' => 'Deployment',
    );
  }

  /**
   * {@inheritdoc}
   */
  function testDeployment() {
    $this
      ->editPlan('deploy_example_plan', array(
      'dependency_plugin' => 'no_dependency',
    ));
    $this
      ->runScenario('deploy_example_plan');
  }

}

Classes

Namesort descending Description
DeployAutoPlanNoDependencyPluginTestCase
DeployAutoPlanTestCase Test a full deployment with the auto deployment functionality.