mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Made acceptance tests work again
Broken due to Codeception moving modules out of codeception/codeception
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
"description": "Test harness for e107",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"require-dev": {
|
||||
"twig/twig": ">=1.28",
|
||||
"codeception/codeception": "^4.0",
|
||||
"codeception/module-asserts": "^1.1",
|
||||
"codeception/module-db": "^1.0",
|
||||
"twig/twig": ">=1.28"
|
||||
"codeception/module-phpbrowser": "^1.0"
|
||||
}
|
||||
}
|
||||
|
@@ -350,9 +350,12 @@ class cPanelDeployer extends Deployer
|
||||
$i = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||
self::println("Adding app to temporary archive…");
|
||||
$path = realpath($path);
|
||||
foreach ($i as $relpath => $_value)
|
||||
/**
|
||||
* @var $file_info SplFileInfo
|
||||
*/
|
||||
foreach ($i as $file_info)
|
||||
{
|
||||
$realpath = realpath($relpath);
|
||||
$realpath = $file_info->getRealPath();
|
||||
if (substr($realpath, 0, strlen($path)) === $path)
|
||||
$relpath = substr($realpath, strlen($path));
|
||||
if (substr($relpath, -3) === "/.." ||
|
||||
|
Reference in New Issue
Block a user