Issue Bug Closed

#22452Test different BE setups in the page renderer unit tests

Oliver Klee 04/14/10, 11:32 updated 02/20/14, 16:31

Description

… e.g. using a data provider.

Post by Ernesto on issue #22376 in the Core NG:

This leads me to a question on the test-scenario. When certain methods
that we are testing behave differently depending on TYPO3_CONF_VARS
settings, they should test all different combinations of such, right?
And not only test the “current developers environment”. What do you
think of this:

$expectedRegExp = ‘#<script
src=“contrib/prototype/prototype\.(js|\d+\.js|js\?\d+)“
type=“text/javascript”></script>#’;
foreach (array(TRUE, FALSE) as
$GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘versionNumberInFilename’]) {
$this->fixture->loadPrototype();
$out = $this->fixture->render();
$this->assertRegExp(
$expectedRegExp,
$out
);
}

(issue imported from #M14104)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.