1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[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
This commit is contained in:
Andy Chase
2013-07-01 15:16:22 -07:00
parent e8facfc735
commit 2f92c903e7
3 changed files with 132 additions and 25 deletions

View File

@@ -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,