View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004784 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2012-12-07 19:49 | 2012-12-12 12:44 |
Reporter | WBL_BjoernLange | Assigned To | |||
Priority | high | Severity | block | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | Past development | ||||
Summary | 0004784: New Test-Structure not realistic enough | ||||
Description | "DON’T change the content of bootstrap.php, if there’s a need to add additional includes or autoloaders please use additional.inc.php" and "Intermodule compatibility" from <http://wiki.oxidforge.org/Certification/Modules> are not matching a running oxid shop. Normally a dev would add an autoloader.php to the modules/functions.php. This file is the first include of the normal shop bootstrap.php. But the required additional.inc.php ist not the first include of the test suite: require_once "unit/test_config.inc.php"; require_once "unit/OxidTestCase.php"; require_once "additional.inc.php"; <- Last Position This is not the correct match to add an autoloader and results for example in problems overwriting the oxutilsobject. To get a more realistic position of the autoloader, it should be this way: require_once "additional.inc.php"; <- Should be the first Position. require_once "unit/test_config.inc.php"; require_once "unit/OxidTestCase.php"; And in addition: The point "Run the ORIGINAL shop tests again as described in “Running shop tests “ since the shop unit tests must also run with the installed module, in order to test shop compatibility." of "Intermodule compatibility" will be very hard, if you do not include the module/functions.php in the test and the correct position suite. The test suite should be more compatible with the normal shop process- | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
faulty text ... " will be very hard, if you do not include the module/functions.php in the test and the correct position suite. The test suite should be more compatible with the normal shop process-" Sry, i meant, that the intermod-compatibilty-tests can be very hard, if you do not include the module/functions.php-substitute at the "correct position" of the test suite. |
|
Bug is moved to PS team bug track list for fixing, so it is why we closed it. |