1
0
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:
Nick Liu
2019-12-28 10:35:36 +01:00
parent e797efce74
commit c31b645013
2 changed files with 7 additions and 3 deletions

View File

@@ -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"
}
}

View File

@@ -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) === "/.." ||