mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10783] Correctly add assets_version config var to includejs urls
PHPBB3-10783
This commit is contained in:
@@ -14,14 +14,14 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
public function test_includejs_compilation()
|
||||
{
|
||||
// Reset the engine state
|
||||
$this->setup_engine();
|
||||
$this->setup_engine(array('assets_version' => 1));
|
||||
|
||||
// Prepare correct result
|
||||
$dir = dirname(__FILE__);
|
||||
$scripts = array(
|
||||
'<script src="' . $dir . '/templates/parent_and_child.html"></script>',
|
||||
'<script src="' . $dir . '/parent_templates/parent_only.html"></script>',
|
||||
'<script src="' . $dir . '/templates/child_only.html"></script>'
|
||||
'<script src="' . $dir . '/templates/parent_and_child.html?assets_version=1"></script>',
|
||||
'<script src="' . $dir . '/parent_templates/parent_only.html?assets_version=1"></script>',
|
||||
'<script src="' . $dir . '/templates/child_only.html?assets_version=1"></script>'
|
||||
);
|
||||
|
||||
// Run test
|
||||
|
Reference in New Issue
Block a user