diff options
author | Andy Chase <asperous2@gmail.com> | 2013-07-01 15:16:22 -0700 |
---|---|---|
committer | Andy Chase <asperous2@gmail.com> | 2013-07-05 14:09:54 -0700 |
commit | 2f92c903e7f42978e01d09287e93d572f5e302c9 (patch) | |
tree | 996ed07008d5cdaf9bf04de4ec882fd0684bf618 /tests/session/extract_page_test.php | |
parent | e8facfc735ccc10fd106a169e2508b4c335a0e9e (diff) | |
download | forums-2f92c903e7f42978e01d09287e93d572f5e302c9.tar forums-2f92c903e7f42978e01d09287e93d572f5e302c9.tar.gz forums-2f92c903e7f42978e01d09287e93d572f5e302c9.tar.bz2 forums-2f92c903e7f42978e01d09287e93d572f5e302c9.tar.xz forums-2f92c903e7f42978e01d09287e93d572f5e302c9.zip |
[ticket/11620] Make testable_facade non-static, expand.
Make the class functions of testable_facade no longer static methods,
but a class based one and expand the methods to be filled in, in later commits.
PHPBB3-11620
Diffstat (limited to 'tests/session/extract_page_test.php')
-rw-r--r-- | tests/session/extract_page_test.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/session/extract_page_test.php b/tests/session/extract_page_test.php index 94ed96c6d2..f8883dc8c9 100644 --- a/tests/session/extract_page_test.php +++ b/tests/session/extract_page_test.php @@ -13,6 +13,7 @@ class phpbb_session_extract_page_test extends phpbb_database_test_case { public $session_factory; public $db; + public $session_facade; static public function extract_current_page_data() { @@ -105,14 +106,14 @@ class phpbb_session_extract_page_test extends phpbb_database_test_case { $this->session_factory = new phpbb_session_testable_factory; $this->db = $this->new_dbal(); + $this->session_facade = + new phpbb_session_testable_facade($this->db, $this->session_factory); } /** @dataProvider extract_current_page_data */ function test_extract_current_page($root_path, $php_self, $query_string, $request_uri, $expected) { - $output = phpbb_session_testable_facade::extract_current_page( - $this->db, - $this->session_factory, + $output = $this->session_facade->extract_current_page( $root_path, $php_self, $query_string, |