Skip to content
This repository
Browse code

MINOR Ensure assertions of RequirementsTest use "framework" as the

FRAMEWORK_DIR, otherwise assertions of require() calls in
RequirementsTest_Conditionals template fail
  • Loading branch information...
commit 01e0ce7b2492b403151aa4577c4c80d630daa8c1 1 parent f238fa4
Sean Harvey authored April 14, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  tests/forms/RequirementsTest.php
4  tests/forms/RequirementsTest.php
@@ -241,7 +241,9 @@ function testRequirementsBackend() {
241 241
 
242 242
 	function testConditionalTemplateRequire() {
243 243
 		$basePath = $this->getCurrentRelativePath();
244  
-		
  244
+		// we're asserting "framework", so set the relative path accordingly in case FRAMEWORK_DIR was changed to something else
  245
+		$basePath = 'framework' . substr($basePath, strlen(FRAMEWORK_DIR));
  246
+
245 247
 		$backend = new RequirementsTest_Backend();
246 248
 		$holder = Requirements::backend();
247 249
 		Requirements::set_backend($backend);

0 notes on commit 01e0ce7

Please sign in to comment.
Something went wrong with that request. Please try again.