mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +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",
|
"description": "Test harness for e107",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"twig/twig": ">=1.28",
|
||||||
"codeception/codeception": "^4.0",
|
"codeception/codeception": "^4.0",
|
||||||
"codeception/module-asserts": "^1.1",
|
"codeception/module-asserts": "^1.1",
|
||||||
"codeception/module-db": "^1.0",
|
"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));
|
$i = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||||
self::println("Adding app to temporary archive…");
|
self::println("Adding app to temporary archive…");
|
||||||
$path = realpath($path);
|
$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)
|
if (substr($realpath, 0, strlen($path)) === $path)
|
||||||
$relpath = substr($realpath, strlen($path));
|
$relpath = substr($realpath, strlen($path));
|
||||||
if (substr($relpath, -3) === "/.." ||
|
if (substr($relpath, -3) === "/.." ||
|
||||||
|
Reference in New Issue
Block a user