diff --git a/tests/functional/CapsuleControllerTest.php b/tests/functional/CapsuleControllerTest.php
index 7b033b32fa8fdfc778aac0ae871a6dc5781cf1c6..804c5aef7c29292eba00e13b3b0a85841d298b90 100644
--- a/tests/functional/CapsuleControllerTest.php
+++ b/tests/functional/CapsuleControllerTest.php
@@ -17,6 +17,9 @@ class CapsuleControllerTest extends WebTestCase
     protected function setUp(): void
     {
         $fileSystem = new Filesystem();
+        if (!$fileSystem->exists(self::TEST_DIR_PATH)) {
+            $fileSystem->mkdir(self::TEST_DIR_PATH, 0644);
+        }
         $this->assertTrue(
             $fileSystem->exists(self::TEST_DIR_PATH),
             'The directory \'' . self::TEST_DIR_PATH . '\' should exists'
diff --git a/tests/functional/ProjectControllerTest.php b/tests/functional/ProjectControllerTest.php
index 49df986f9892deb24296e19497cf15f8e99559ff..e7daa45ee31158d60a0a7215946fcffb144c0db9 100644
--- a/tests/functional/ProjectControllerTest.php
+++ b/tests/functional/ProjectControllerTest.php
@@ -22,6 +22,9 @@ class ProjectControllerTest extends WebTestCase
     protected function setUp(): void
     {
         $fileSystem = new Filesystem();
+        if (!$fileSystem->exists(self::TEST_DIR_PATH)) {
+            $fileSystem->mkdir(self::TEST_DIR_PATH, 0644);
+        }
         $this->assertTrue(
             $fileSystem->exists(self::TEST_DIR_PATH),
             'The directory \'' . self::TEST_DIR_PATH . '\' should exists'