mirror of
https://github.com/e107inc/e107.git
synced 2025-10-14 14:34:51 +02:00
e107 is now ready for fully automated testing on all three test suites: * Acceptance * Functional * Unit New features: * cPanelDeployer adds a cPanel Remote MySQL access host * e107 database dump importer * Unit tests now load e107 Fixes: * Test prefixes now only use characters valid for MySQL/MariaDB without escaping * Refactored a bunch of things * All existing tests pass now Changes: * Deployers now provided by \Helper\DeployerFactory * Added Twig templating for generating e107_config.php for testing * cPanelDeployer now outputs to codecept_debug()
27 lines
583 B
PHP
27 lines
583 B
PHP
<?php
|
|
namespace Helper;
|
|
|
|
// here you can define custom actions
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
class Unit extends E107Base
|
|
{
|
|
protected $deployer_components = ['db'];
|
|
|
|
public function _beforeSuite($settings = array())
|
|
{
|
|
parent::_beforeSuite($settings);
|
|
|
|
global $_E107;
|
|
$_E107 = array();
|
|
$_E107['cli'] = true;
|
|
$_E107['phpunit'] = true;
|
|
#$_E107['debug'] = true;
|
|
|
|
$db = $this->getModule('\Helper\DelayedDb');
|
|
$db->_loadDump();
|
|
codecept_debug("Loading ".APP_PATH."/class2.php…");
|
|
require_once(APP_PATH."/class2.php");
|
|
}
|
|
}
|