diff --git a/tests/forms/RequirementsTest.php b/tests/forms/RequirementsTest.php index 9c1ead1c2..ac588a0ba 100644 --- a/tests/forms/RequirementsTest.php +++ b/tests/forms/RequirementsTest.php @@ -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);