mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f238fa4492
commit
01e0ce7b24
@ -241,6 +241,8 @@ 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();
|
||||
|
Loading…
Reference in New Issue
Block a user