From 90a3d1ced420c2ad26fa4d4a1df73b55733c8e63 Mon Sep 17 00:00:00 2001 From: Andrea Adamczyk Date: Fri, 4 Oct 2019 15:08:54 -0400 Subject: [PATCH] PMC-1288 --- .../unit/workflow/engine/controllers/DesignerTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/unit/workflow/engine/controllers/DesignerTest.php b/tests/unit/workflow/engine/controllers/DesignerTest.php index 7ba5cbb3f..dd1748006 100644 --- a/tests/unit/workflow/engine/controllers/DesignerTest.php +++ b/tests/unit/workflow/engine/controllers/DesignerTest.php @@ -49,6 +49,17 @@ class DesignerTest extends TestCase //Turn on output buffering ob_start(); + //Creates the buildhash file just in case it does not exist + if (!file_exists(PATH_HTML . "lib/buildhash")) { + if (!file_exists(PATH_HTML . "lib")) { + if (!file_exists(PATH_HTML)) { + mkdir(PATH_HTML); + } + mkdir(PATH_HTML . "lib"); + } + fopen(PATH_HTML . "lib/buildhash", "w"); + } + //Call the index method $object->index($httpData);