mirror of
https://github.com/e107inc/e107.git
synced 2025-10-13 05:55:02 +02:00
- 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.
29 lines
594 B
PHP
29 lines
594 B
PHP
<?php
|
|
namespace Helper;
|
|
|
|
// here you can define custom actions
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
class Acceptance extends E107Base
|
|
{
|
|
protected $deployer_components = ['db', 'fs'];
|
|
|
|
protected function writeLocalE107Config()
|
|
{
|
|
// Noop
|
|
// Acceptance tests will install the app themselves
|
|
}
|
|
|
|
public function unlinkE107ConfigFromTestEnvironment()
|
|
{
|
|
// cPanel Environment
|
|
$this->deployer->unlinkAppFile("e107_config.php");
|
|
|
|
// Local Environment
|
|
if (file_exists(APP_PATH."/e107_config.php"))
|
|
{
|
|
unlink(APP_PATH."/e107_config.php");
|
|
}
|
|
}
|
|
}
|