diff --git a/tests/TestCase/Controller/BaseControllerTest.php b/tests/TestCase/Controller/BaseControllerTest.php index 0426288..d58415c 100644 --- a/tests/TestCase/Controller/BaseControllerTest.php +++ b/tests/TestCase/Controller/BaseControllerTest.php @@ -41,7 +41,7 @@ class BaseControllerTest extends TestCase $newName = $productsFolder . DS . '2c386086-f4c5-4093-bea5-ee9c29479f58.png'; if (file_exists($toCopy)) { if (!file_exists($productsFolder)) { - mkdir($productsFolder); + mkdir($productsFolder, 0775, true); } copy($toCopy, $newName); }