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,7 +241,9 @@ class RequirementsTest extends SapphireTest {
|
|||||||
|
|
||||||
function testConditionalTemplateRequire() {
|
function testConditionalTemplateRequire() {
|
||||||
$basePath = $this->getCurrentRelativePath();
|
$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();
|
$backend = new RequirementsTest_Backend();
|
||||||
$holder = Requirements::backend();
|
$holder = Requirements::backend();
|
||||||
Requirements::set_backend($backend);
|
Requirements::set_backend($backend);
|
||||||
|
Loading…
Reference in New Issue
Block a user