Skip to content

Commit 0d31653

Browse files
authored
IBX-11766: [ibexa/behat] Added tests/bootstrap.php and adjusted manifest.json (#247)
* IBX-11766 added tests/bootstrap.php and adjusted manifest.json * IXB-11766 adjustments after CR * IBX-11766 Replaced `require` with `require_once`
1 parent 9793b24 commit 0d31653

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

ibexa/behat/5.0/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"behat_ibexa_commerce.yaml": "behat_ibexa_commerce.yaml"
1212
},
1313
"copy-from-recipe": {
14-
"config/": "%CONFIG_DIR%/"
14+
"config/": "%CONFIG_DIR%/",
15+
"tests/": "tests/"
1516
}
1617
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\Dotenv\Dotenv;
6+
7+
require_once dirname(__DIR__) . '/vendor/autoload.php';
8+
9+
if (method_exists(Dotenv::class, 'bootEnv')) {
10+
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
11+
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

ibexa/behat/6.0/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"behat_ibexa_commerce.yaml": "behat_ibexa_commerce.yaml"
1212
},
1313
"copy-from-recipe": {
14-
"config/": "%CONFIG_DIR%/"
14+
"config/": "%CONFIG_DIR%/",
15+
"tests/": "tests/"
1516
}
1617
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\Dotenv\Dotenv;
6+
7+
require_once dirname(__DIR__) . '/vendor/autoload.php';
8+
9+
if (method_exists(Dotenv::class, 'bootEnv')) {
10+
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
11+
}
12+
13+
if ($_SERVER['APP_DEBUG']) {
14+
umask(0000);
15+
}

0 commit comments

Comments
 (0)