Permalink
Browse files

MINOR Ensure assertions of RequirementsTest use "framework" as the

FRAMEWORK_DIR, otherwise assertions of require() calls in
RequirementsTest_Conditionals template fail
  • Loading branch information...
1 parent f238fa4 commit 01e0ce7b2492b403151aa4577c4c80d630daa8c1 @halkyon halkyon committed Apr 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/forms/RequirementsTest.php
@@ -241,7 +241,9 @@ function testRequirementsBackend() {
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);

0 comments on commit 01e0ce7

Please sign in to comment.