1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +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_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,