mirror of
https://github.com/e107inc/e107.git
synced 2025-10-12 21:45:11 +02:00
Started a basic interface to manipulate files in acceptance tests
- MOD: Renamed lib/deployers/cpanel_deployer.php to lib/deployers/cPanelDeployer.php - MOD: Moved responsibility of reconfiguring Codeception modules to the deployers. - NEW: Abstract class Deployer to standardize the interface to Deployers - NEW: Acceptance tests now support unlinkE107ConfigFromTestEnvironment - MOD: Removed null checks for the Deployer in the Base Module - MOD: Improved public method naming in the Base Module - MOD: DeployerFactory always returns a Deployer implementation now. - MOD: InstallCest always clears out the e107_config.php file before each test.
This commit is contained in:
29
lib/deployers/Deployer.php
Normal file
29
lib/deployers/Deployer.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
abstract class Deployer
|
||||
{
|
||||
abstract public function start();
|
||||
abstract public function stop();
|
||||
|
||||
protected $components = array();
|
||||
|
||||
/**
|
||||
* @param array $components
|
||||
*/
|
||||
public function setComponents($components)
|
||||
{
|
||||
$this->components = $components;
|
||||
}
|
||||
|
||||
/**
|
||||
* Methods not implemented
|
||||
*
|
||||
* @param $method_name
|
||||
* @param $arguments
|
||||
* @return null
|
||||
*/
|
||||
public function __call($method_name, $arguments)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user