From 2cd7f2ff483c85641fd956f84d27917716d48972 Mon Sep 17 00:00:00 2001 From: Andrew Reddin Date: Wed, 10 Apr 2013 13:06:33 -0300 Subject: [PATCH] Should have used DRUPAL_ROOT instead of $_SERVER['DOC_ROOT'] Quick patch to the pull request I made. I should have used DRUPAL_ROOT instead of the php document root variable as the patch didn't work on a second system otherwise --- tests/MimeClass.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MimeClass.test b/tests/MimeClass.test index 90bb7a43..bdd9d3f7 100644 --- a/tests/MimeClass.test +++ b/tests/MimeClass.test @@ -10,8 +10,8 @@ //file_mimetype_mapping wasn't getting loaded. //the solution was to include it in the test -$path = "/drupal7/includes/file.mimetypes.inc"; -require_once $_SERVER['DOCUMENT_ROOT'] . $path; +$path = "/includes/file.mimetypes.inc"; +require_once DRUPAL_ROOT . $path; class MimeClassTestCase extends DrupalWebTestCase { protected $privileged_user;