From a36a80bc941a5fab055b8e4471331b0706590839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Fri, 15 May 2026 07:52:42 +0200 Subject: [PATCH 1/3] IBX-11766 added tests/bootstrap.php and adjusted manifest.json --- ibexa/behat/5.0/manifest.json | 3 ++- ibexa/behat/5.0/tests/bootstrap.php | 13 +++++++++++++ ibexa/behat/6.0/manifest.json | 3 ++- ibexa/behat/6.0/tests/bootstrap.php | 13 +++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 ibexa/behat/5.0/tests/bootstrap.php create mode 100644 ibexa/behat/6.0/tests/bootstrap.php diff --git a/ibexa/behat/5.0/manifest.json b/ibexa/behat/5.0/manifest.json index 81a5e45c..12fdec85 100644 --- a/ibexa/behat/5.0/manifest.json +++ b/ibexa/behat/5.0/manifest.json @@ -11,6 +11,7 @@ "behat_ibexa_commerce.yaml": "behat_ibexa_commerce.yaml" }, "copy-from-recipe": { - "config/": "%CONFIG_DIR%/" + "config/": "%CONFIG_DIR%/", + "tests/": "tests/" } } diff --git a/ibexa/behat/5.0/tests/bootstrap.php b/ibexa/behat/5.0/tests/bootstrap.php new file mode 100644 index 00000000..b4d9d4d1 --- /dev/null +++ b/ibexa/behat/5.0/tests/bootstrap.php @@ -0,0 +1,13 @@ +bootEnv(dirname(__DIR__) . '/.env'); +} + +if ($_SERVER['APP_DEBUG']) { + umask(0000); +} \ No newline at end of file diff --git a/ibexa/behat/6.0/manifest.json b/ibexa/behat/6.0/manifest.json index 81a5e45c..12fdec85 100644 --- a/ibexa/behat/6.0/manifest.json +++ b/ibexa/behat/6.0/manifest.json @@ -11,6 +11,7 @@ "behat_ibexa_commerce.yaml": "behat_ibexa_commerce.yaml" }, "copy-from-recipe": { - "config/": "%CONFIG_DIR%/" + "config/": "%CONFIG_DIR%/", + "tests/": "tests/" } } diff --git a/ibexa/behat/6.0/tests/bootstrap.php b/ibexa/behat/6.0/tests/bootstrap.php new file mode 100644 index 00000000..b4d9d4d1 --- /dev/null +++ b/ibexa/behat/6.0/tests/bootstrap.php @@ -0,0 +1,13 @@ +bootEnv(dirname(__DIR__) . '/.env'); +} + +if ($_SERVER['APP_DEBUG']) { + umask(0000); +} \ No newline at end of file From 75625240ee905b0276e3a96e95a07ac6247c8302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Fri, 15 May 2026 09:17:11 +0200 Subject: [PATCH 2/3] IXB-11766 adjustments after CR --- ibexa/behat/5.0/tests/bootstrap.php | 4 +++- ibexa/behat/6.0/tests/bootstrap.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ibexa/behat/5.0/tests/bootstrap.php b/ibexa/behat/5.0/tests/bootstrap.php index b4d9d4d1..e494c79c 100644 --- a/ibexa/behat/5.0/tests/bootstrap.php +++ b/ibexa/behat/5.0/tests/bootstrap.php @@ -1,5 +1,7 @@ Date: Fri, 15 May 2026 10:47:28 +0200 Subject: [PATCH 3/3] IBX-11766 Replaced `require` with `require_once` --- ibexa/behat/5.0/tests/bootstrap.php | 2 +- ibexa/behat/6.0/tests/bootstrap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ibexa/behat/5.0/tests/bootstrap.php b/ibexa/behat/5.0/tests/bootstrap.php index e494c79c..48f417b1 100644 --- a/ibexa/behat/5.0/tests/bootstrap.php +++ b/ibexa/behat/5.0/tests/bootstrap.php @@ -4,7 +4,7 @@ use Symfony\Component\Dotenv\Dotenv; -require dirname(__DIR__) . '/vendor/autoload.php'; +require_once dirname(__DIR__) . '/vendor/autoload.php'; if (method_exists(Dotenv::class, 'bootEnv')) { (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env'); diff --git a/ibexa/behat/6.0/tests/bootstrap.php b/ibexa/behat/6.0/tests/bootstrap.php index e494c79c..48f417b1 100644 --- a/ibexa/behat/6.0/tests/bootstrap.php +++ b/ibexa/behat/6.0/tests/bootstrap.php @@ -4,7 +4,7 @@ use Symfony\Component\Dotenv\Dotenv; -require dirname(__DIR__) . '/vendor/autoload.php'; +require_once dirname(__DIR__) . '/vendor/autoload.php'; if (method_exists(Dotenv::class, 'bootEnv')) { (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');