[WIP][POC] the PhpUnit tests can now build and use various environments

drawbacks: the application startup was emulated since it is not compatible with a custom env. when launched with the CLI (it rely on the session in an incompatible way)
This commit is contained in:
bruno-ds
2021-03-26 12:24:40 +01:00
parent 91fc2d2e2b
commit 80cb3a11db
29 changed files with 4028 additions and 2798 deletions

View File

@@ -0,0 +1,50 @@
<?php
SetupWebPage::AddModule(
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
'module-test-foo/0.0.1',
array(
// Identification
//
'label' => 'Foo module',
'category' => 'Application management',
// Setup
//
'dependencies' => array(
),
'mandatory' => true,
'visible' => false,
// Components
//
'datamodel' => array(
'main.module-test-foo.php',
'model.module-test-foo.php',
),
'webservice' => array(
//'webservices.module-test-foo.php',
),
'dictionary' => array(
'en.dict.module-test-foo.php',
),
'data.struct' => array(
//'data.struct.module-test-foo.xml',
),
'data.sample' => array(
//'data.sample.module-test-foo.xml',
),
// Documentation
//
'doc.manual_setup' => '',
'doc.more_information' => '',
// Default settings
//
'settings' => array(
'module-test-foo' => 'bar',
),
)
);