diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:43:26 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:43:26 -0500 |
commit | b4947f94ed23270d4dbb498afb31555da2c8af0d (patch) | |
tree | c8a60569267d4e6e233b114b5062c33c2e9128d4 /tests/template/template_includejs_test.php | |
parent | 57c2d99e65ce107208db10721cff5b815ee3403c (diff) | |
download | forums-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.php | 12 |
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 |