diff --git a/src/Controller/ProjectController.php b/src/Controller/ProjectController.php index 37f9d1596c090a9d1140aa2de54d8a51ae651568..b9f1a4f3d4541838edda1581f5b0010701ae132e 100755 --- a/src/Controller/ProjectController.php +++ b/src/Controller/ProjectController.php @@ -25,9 +25,6 @@ class ProjectController extends AbstractController } #[Route('/{_locale<%app.supported_locales%>}/project/create', name:'create_project', methods:['POST'])] - /** - * @throws ZipArchiveNotOpeningException - */ public function create( Capsule $capsule, string $video_url diff --git a/tests/functional/CapsuleControllerTest.php b/tests/functional/CapsuleControllerTest.php index dddc2a2d04548747e2830b58dad71229a061369a..7b033b32fa8fdfc778aac0ae871a6dc5781cf1c6 100644 --- a/tests/functional/CapsuleControllerTest.php +++ b/tests/functional/CapsuleControllerTest.php @@ -16,6 +16,11 @@ class CapsuleControllerTest extends WebTestCase protected function setUp(): void { + $fileSystem = new Filesystem(); + $this->assertTrue( + $fileSystem->exists(self::TEST_DIR_PATH), + 'The directory \'' . self::TEST_DIR_PATH . '\' should exists' + ); chdir(self::TEST_DIR_PATH); self::ensureKernelShutdown(); diff --git a/tests/functional/ProjectControllerTest.php b/tests/functional/ProjectControllerTest.php index f2646635702f7f255d066004595430d046ec51c7..49df986f9892deb24296e19497cf15f8e99559ff 100644 --- a/tests/functional/ProjectControllerTest.php +++ b/tests/functional/ProjectControllerTest.php @@ -21,6 +21,11 @@ class ProjectControllerTest extends WebTestCase protected function setUp(): void { + $fileSystem = new Filesystem(); + $this->assertTrue( + $fileSystem->exists(self::TEST_DIR_PATH), + 'The directory \'' . self::TEST_DIR_PATH . '\' should exists' + ); chdir(self::TEST_DIR_PATH); self::ensureKernelShutdown();