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

[ticket/11620] Minor changes to tests for coding standards

PHPBB3-11620
This commit is contained in:
Andy Chase
2013-07-08 16:34:46 -07:00
parent 3999d7ec7c
commit cd1fe789d2
4 changed files with 28 additions and 20 deletions

View File

@@ -15,6 +15,19 @@ class phpbb_session_extract_page_test extends phpbb_database_test_case
public $db;
public $session_facade;
public function getDataSet()
{
return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/sessions_empty.xml');
}
public function setUp()
{
$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_page_data()
{
return array(
@@ -97,19 +110,6 @@ class phpbb_session_extract_page_test extends phpbb_database_test_case
);
}
public function getDataSet()
{
return $this->createXMLDataSet(dirname(__FILE__).'/fixtures/sessions_empty.xml');
}
public function setUp()
{
$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)
{