mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 05:41:58 +02:00
Preparation for merge with e107 repository
Moved all test files to e107_tests subdirectory
This commit is contained in:
40
e107_tests/tests/_support/Helper/Unit.php
Normal file
40
e107_tests/tests/_support/Helper/Unit.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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;
|
||||
|
||||
codecept_debug("Loading ".APP_PATH."/class2.php…");
|
||||
define('E107_DBG_BASIC', true);
|
||||
require_once(APP_PATH."/class2.php");
|
||||
|
||||
$create_dir = array(e_MEDIA,e_MEDIA_IMAGE,e_MEDIA_ICON,e_SYSTEM,e_CACHE,e_CACHE_CONTENT,e_CACHE_IMAGE, e_CACHE_DB, e_LOG, e_BACKUP, e_CACHE_URL, e_TEMP, e_IMPORT);
|
||||
|
||||
foreach($create_dir as $dr)
|
||||
{
|
||||
if(!is_dir($dr))
|
||||
{
|
||||
if(mkdir($dr, 0755))
|
||||
{
|
||||
// echo "\n(Creating ".$dr.")";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user