Commit 3f45b02a authored by jcnventura's avatar jcnventura

Make tests successful again

parent fe25f54b
......@@ -49,11 +49,13 @@ class PrintBasicTest extends DrupalWebTestCase {
function testPrintRewriteUrls() {
global $base_url, $base_root;
global $base_url, $base_root, $_print_urls;
//Must require it, since this function gets called via Drupal's dynamic loading
require_once(DRUPAL_ROOT . '/' . drupal_get_path('module', 'print') . '/');
$_print_urls = TRUE;
$pattern = '!<(a\s[^>]*?)>(.*?)(</a>)!is';
$footnote = ' <span class="print-footnote">[1]</span>';
$part1 = '<a class=\'class1 class2\' target=_blank hreflang="en" id="some complicated \"\" text" href="';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment