aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_includejs_test.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-02 12:43:26 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-02 12:43:26 -0500
commitb4947f94ed23270d4dbb498afb31555da2c8af0d (patch)
treec8a60569267d4e6e233b114b5062c33c2e9128d4 /tests/template/template_includejs_test.php
parent57c2d99e65ce107208db10721cff5b815ee3403c (diff)
downloadforums-b4947f94ed23270d4dbb498afb31555da2c8af0d.tar
forums-b4947f94ed23270d4dbb498afb31555da2c8af0d.tar.gz
forums-b4947f94ed23270d4dbb498afb31555da2c8af0d.tar.bz2
forums-b4947f94ed23270d4dbb498afb31555da2c8af0d.tar.xz
forums-b4947f94ed23270d4dbb498afb31555da2c8af0d.zip
[feature/twig] Should compare to $this->test_path rather than hardcoded path
PHPBB3-11598
Diffstat (limited to 'tests/template/template_includejs_test.php')
-rw-r--r--tests/template/template_includejs_test.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/template/template_includejs_test.php b/tests/template/template_includejs_test.php
index 67381b1fd4..a57b219150 100644
--- a/tests/template/template_includejs_test.php
+++ b/tests/template/template_includejs_test.php
@@ -18,12 +18,12 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
// Prepare correct result
$scripts = array(
- '<script type="text/javascript" src="tests/template/templates/parent_and_child.js?assets_version=1"></script>',
- '<script type="text/javascript" src="tests/template/parent_templates/parent_only.js?assets_version=1"></script>',
- '<script type="text/javascript" src="tests/template/templates/child_only.js?assets_version=1"></script>',
- '<script type="text/javascript" src="tests/template/templates/subdir/parent_only.js?assets_version=1"></script>',
- '<script type="text/javascript" src="tests/template/templates/subdir/subsubdir/parent_only.js?assets_version=1"></script>',
- '<script type="text/javascript" src="tests/template/templates/subdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/templates/child_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/subsubdir/parent_only.js?assets_version=1"></script>',
+ '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>',
);
// Run test