deploy_auto_plan.test in Deploy - Content Staging 7.2
Same filename and directory in other branches
Deploy Automagic Plan module tests.
File
modules/deploy_auto_plan/deploy_auto_plan.testView 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
Name | Description |
---|---|
DeployAutoPlanNoDependencyPluginTestCase | |
DeployAutoPlanTestCase | Test a full deployment with the auto deployment functionality. |