aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session/extract_hostname_test.php
diff options
context:
space:
mode:
authorAndy Chase <asperous2@gmail.com>2013-07-01 15:16:22 -0700
committerAndy Chase <asperous2@gmail.com>2013-07-05 14:09:54 -0700
commit2f92c903e7f42978e01d09287e93d572f5e302c9 (patch)
tree996ed07008d5cdaf9bf04de4ec882fd0684bf618 /tests/session/extract_hostname_test.php
parente8facfc735ccc10fd106a169e2508b4c335a0e9e (diff)
downloadforums-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_hostname_test.php')
-rw-r--r--tests/session/extract_hostname_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/session/extract_hostname_test.php b/tests/session/extract_hostname_test.php
index ae12a027f7..6978b5286f 100644
--- a/tests/session/extract_hostname_test.php
+++ b/tests/session/extract_hostname_test.php
@@ -13,6 +13,7 @@ class phpbb_session_extract_hostname_test extends phpbb_database_test_case
{
public $session_factory;
public $db;
+ public $session_facade;
public function getDataSet()
{
@@ -23,6 +24,8 @@ class phpbb_session_extract_hostname_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);
}
static public function extract_current_hostname_data()
@@ -45,7 +48,7 @@ class phpbb_session_extract_hostname_test extends phpbb_database_test_case
/** @dataProvider extract_current_hostname_data */
function test_extract_current_hostname($host, $server_name_config, $cookie_domain_config, $expected)
{
- $output = phpbb_session_testable_facade::extract_current_hostname(
+ $output = $this->session_facade->extract_current_hostname(
$this->db,
$this->session_factory,
$host,