View Issue Details

IDProjectCategoryView StatusLast Update
0004784OXID eShop (all versions)2.3. Extensions (modules, themes)public2012-12-12 12:44
ReporterWBL_BjoernLange Assigned To 
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionwon't fix 
Product VersionPast development 
Summary0004784: 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-
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

WBL_BjoernLange

2012-12-12 00:07

reporter   ~0008102

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.

svetlana

2012-12-12 12:43

reporter   ~0008107

Bug is moved to PS team bug track list for fixing, so it is why we closed it.