MINOR Ensure assertions of RequirementsTest use "framework" as the

FRAMEWORK_DIR, otherwise assertions of require() calls in
RequirementsTest_Conditionals template fail
This commit is contained in:
Sean Harvey 2012-04-14 18:48:28 +12:00
parent f238fa4492
commit 01e0ce7b24

View File

@ -241,7 +241,9 @@ class RequirementsTest extends SapphireTest {
function testConditionalTemplateRequire() {
$basePath = $this->getCurrentRelativePath();
// we're asserting "framework", so set the relative path accordingly in case FRAMEWORK_DIR was changed to something else
$basePath = 'framework' . substr($basePath, strlen(FRAMEWORK_DIR));
$backend = new RequirementsTest_Backend();
$holder = Requirements::backend();
Requirements::set_backend($backend);