aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_includejs_test.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-06-24 22:40:17 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-06-24 22:40:17 -0500
commit8bda356dabae89b8dff62796a6bf6e9b57cd85c1 (patch)
treecf8160acf0805d14de568df7d125e93813002580 /tests/template/template_includejs_test.php
parent3ca99f8122c149a66f59dbf3c9884c095db7ad3c (diff)
downloadforums-8bda356dabae89b8dff62796a6bf6e9b57cd85c1.tar
forums-8bda356dabae89b8dff62796a6bf6e9b57cd85c1.tar.gz
forums-8bda356dabae89b8dff62796a6bf6e9b57cd85c1.tar.bz2
forums-8bda356dabae89b8dff62796a6bf6e9b57cd85c1.tar.xz
forums-8bda356dabae89b8dff62796a6bf6e9b57cd85c1.zip
[feature/twig] Correct includejs test
PHPBB3-11598
Diffstat (limited to 'tests/template/template_includejs_test.php')
-rw-r--r--tests/template/template_includejs_test.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/template/template_includejs_test.php b/tests/template/template_includejs_test.php
index 22b020208b..c0169bd385 100644
--- a/tests/template/template_includejs_test.php
+++ b/tests/template/template_includejs_test.php
@@ -18,16 +18,15 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
// Prepare correct result
$scripts = array(
- '<script src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=1"></script>',
- '<script src="' . $this->test_path . '/parent_templates/parent_only.js?assets_version=1"></script>',
- '<script src="' . $this->test_path . '/templates/child_only.js?assets_version=1"></script>',
- '<script src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>',
- '<script src="' . $this->test_path . '/templates/subdir/subsubdir/parent_only.js?assets_version=1"></script>',
- '<script src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="parent_and_child.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="child_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="subdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="subdir/subsubdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="subdir/parent_only.js?assets_version=1"></script>',
);
// Run test
- $cache_file = $this->template->cachepath . 'includejs.html.php';
- $this->run_template('includejs.html', array('PARENT' => 'parent_only.js', 'SUBDIR' => 'subdir', 'EXT' => 'js'), array(), array(), implode('', $scripts), $cache_file);
+ $this->run_template('includejs.html', array('PARENT' => 'parent_only.js', 'SUBDIR' => 'subdir', 'EXT' => 'js'), array(), array(), implode('', $scripts));
}
}