mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12620] Use the test environment for the tests
PHPBB3-12620
This commit is contained in:
parent
91daa73663
commit
dd4f2387fd
17 changed files with 17 additions and 3 deletions
|
@ -283,6 +283,8 @@
|
||||||
<delete file="${dir}/config.php" />
|
<delete file="${dir}/config.php" />
|
||||||
<delete dir="${dir}/develop" />
|
<delete dir="${dir}/develop" />
|
||||||
<delete dir="${dir}/install/data" />
|
<delete dir="${dir}/install/data" />
|
||||||
|
<delete dir="${dir}/config/development" />
|
||||||
|
<delete dir="${dir}/config/test" />
|
||||||
|
|
||||||
<phingcall target="clean-vendor-dir">
|
<phingcall target="clean-vendor-dir">
|
||||||
<property name="dir" value="${dir}" />
|
<property name="dir" value="${dir}" />
|
||||||
|
|
5
phpBB/config/test/config.yml
Normal file
5
phpBB/config/test/config.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
imports:
|
||||||
|
- { resource: ../default/config.yml }
|
||||||
|
|
||||||
|
core:
|
||||||
|
require_dev_dependencies: true
|
3
phpBB/config/test/container/environment.yml
Normal file
3
phpBB/config/test/container/environment.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
imports:
|
||||||
|
- { resource: services.yml }
|
||||||
|
- { resource: parameters.yml }
|
2
phpBB/config/test/container/parameters.yml
Normal file
2
phpBB/config/test/container/parameters.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
imports:
|
||||||
|
- { resource: ../../default/container/parameters.yml }
|
2
phpBB/config/test/container/services.yml
Normal file
2
phpBB/config/test/container/services.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
imports:
|
||||||
|
- { resource: ../../default/container/services.yml }
|
2
phpBB/config/test/routing.yml
Normal file
2
phpBB/config/test/routing.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
core.default:
|
||||||
|
resource: "../default/routing.yml"
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('IN_PHPBB', true);
|
define('IN_PHPBB', true);
|
||||||
define('PHPBB_ENVIRONMENT', 'development');
|
define('PHPBB_ENVIRONMENT', 'test');
|
||||||
|
|
||||||
$phpbb_root_path = 'phpBB/';
|
$phpbb_root_path = 'phpBB/';
|
||||||
$phpEx = 'php';
|
$phpEx = 'php';
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
define('PHPBB_ENVIRONMENT', 'production');
|
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
|
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
|
||||||
require_once dirname(__FILE__) . '/fixtures/ext/vendor/enabled_4/di/extension.php';
|
require_once dirname(__FILE__) . '/fixtures/ext/vendor/enabled_4/di/extension.php';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue