aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-09-25 07:50:22 -0700
committerNils Adermann <naderman@naderman.de>2013-09-25 07:50:22 -0700
commit8da31332381b572f8d03c63d4c32a4f32ed8775f (patch)
tree1ef729ea3700bae463cd57b672e8de12311fe00d /tests/template
parent717e2337b9276d9f9680110dff552ea536d0723c (diff)
parent645bd127dd53300b7877b779226ac53a4891620c (diff)
downloadforums-8da31332381b572f8d03c63d4c32a4f32ed8775f.tar
forums-8da31332381b572f8d03c63d4c32a4f32ed8775f.tar.gz
forums-8da31332381b572f8d03c63d4c32a4f32ed8775f.tar.bz2
forums-8da31332381b572f8d03c63d4c32a4f32ed8775f.tar.xz
forums-8da31332381b572f8d03c63d4c32a4f32ed8775f.zip
Merge pull request #1565 from naderman/ticket/11700
[WIP][ticket/11700] Namespaces
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/template_events_test.php8
-rw-r--r--tests/template/template_test_case.php10
-rw-r--r--tests/template/template_test_case_with_tree.php8
3 files changed, 13 insertions, 13 deletions
diff --git a/tests/template/template_events_test.php b/tests/template/template_events_test.php
index 58691a36da..4155d5fd83 100644
--- a/tests/template/template_events_test.php
+++ b/tests/template/template_events_test.php
@@ -110,20 +110,20 @@ Zeta test event in all',
global $phpbb_root_path, $phpEx, $user;
$defaults = $this->config_defaults();
- $config = new phpbb_config(array_merge($defaults, $new_config));
+ $config = new \phpbb\config\config(array_merge($defaults, $new_config));
$this->template_path = dirname(__FILE__) . "/datasets/$dataset/styles/silver/template";
$this->extension_manager = new phpbb_mock_filesystem_extension_manager(
dirname(__FILE__) . "/datasets/$dataset/"
);
- $phpbb_filesystem = new phpbb_filesystem(
- new phpbb_symfony_request(
+ $phpbb_filesystem = new \phpbb\filesystem(
+ new \phpbb\symfony_request(
new phpbb_mock_request()
),
$phpbb_root_path,
$phpEx
);
- $this->template = new phpbb_template_twig($phpbb_filesystem, $config, $user, new phpbb_template_context, $this->extension_manager);
+ $this->template = new \phpbb\template\twig\twig($phpbb_filesystem, $config, $user, new \phpbb\template\context, $this->extension_manager);
$this->template->set_custom_style(((!empty($style_names)) ? $style_names : 'silver'), array($this->template_path));
}
}
diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php
index 8151e15b24..e9cbdec1d9 100644
--- a/tests/template/template_test_case.php
+++ b/tests/template/template_test_case.php
@@ -60,11 +60,11 @@ class phpbb_template_template_test_case extends phpbb_test_case
global $phpbb_root_path, $phpEx;
$defaults = $this->config_defaults();
- $config = new phpbb_config(array_merge($defaults, $new_config));
- $this->user = new phpbb_user;
+ $config = new \phpbb\config\config(array_merge($defaults, $new_config));
+ $this->user = new \phpbb\user;
- $phpbb_filesystem = new phpbb_filesystem(
- new phpbb_symfony_request(
+ $phpbb_filesystem = new \phpbb\filesystem(
+ new \phpbb\symfony_request(
new phpbb_mock_request()
),
$phpbb_root_path,
@@ -72,7 +72,7 @@ class phpbb_template_template_test_case extends phpbb_test_case
);
$this->template_path = $this->test_path . '/templates';
- $this->template = new phpbb_template_twig($phpbb_filesystem, $config, $this->user, new phpbb_template_context());
+ $this->template = new \phpbb\template\twig\twig($phpbb_filesystem, $config, $this->user, new \phpbb\template\context());
$this->template->set_custom_style('tests', $this->template_path);
}
diff --git a/tests/template/template_test_case_with_tree.php b/tests/template/template_test_case_with_tree.php
index c7bd03a3c7..232331d37c 100644
--- a/tests/template/template_test_case_with_tree.php
+++ b/tests/template/template_test_case_with_tree.php
@@ -16,10 +16,10 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
global $phpbb_root_path, $phpEx, $user;
$defaults = $this->config_defaults();
- $config = new phpbb_config(array_merge($defaults, $new_config));
+ $config = new \phpbb\config\config(array_merge($defaults, $new_config));
- $this->phpbb_filesystem = new phpbb_filesystem(
- new phpbb_symfony_request(
+ $this->phpbb_filesystem = new \phpbb\filesystem(
+ new \phpbb\symfony_request(
new phpbb_mock_request()
),
$phpbb_root_path,
@@ -28,7 +28,7 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
$this->template_path = $this->test_path . '/templates';
$this->parent_template_path = $this->test_path . '/parent_templates';
- $this->template = new phpbb_template_twig($this->phpbb_filesystem, $config, $user, new phpbb_template_context());
+ $this->template = new phpbb\template\twig\twig($this->phpbb_filesystem, $config, $user, new phpbb\template\context());
$this->template->set_custom_style('tests', array($this->template_path, $this->parent_template_path));
}
}