mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11700] Move all recent code to namespaces
PHPBB3-11700
This commit is contained in:
@@ -56,11 +56,11 @@ class phpbb_session_continue_test extends phpbb_database_test_case
|
||||
global $phpbb_container, $phpbb_root_path, $phpEx;
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$config = new phpbb_config(array());
|
||||
$request = $this->getMock('phpbb_request');
|
||||
$user = $this->getMock('phpbb_user');
|
||||
$config = new \phpbb\config\config(array());
|
||||
$request = $this->getMock('\phpbb\request\request');
|
||||
$user = $this->getMock('\phpbb\user');
|
||||
|
||||
$auth_provider = new phpbb_auth_provider_db($db, $config, $request, $user, $phpbb_root_path, $phpEx);
|
||||
$auth_provider = new \phpbb\auth\provider\db($db, $config, $request, $user, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
|
||||
$phpbb_container->expects($this->any())
|
||||
->method('get')
|
||||
|
@@ -23,11 +23,11 @@ class phpbb_session_creation_test extends phpbb_database_test_case
|
||||
global $phpbb_container, $phpbb_root_path, $phpEx;
|
||||
|
||||
$db = $this->new_dbal();
|
||||
$config = new phpbb_config(array());
|
||||
$request = $this->getMock('phpbb_request');
|
||||
$user = $this->getMock('phpbb_user');
|
||||
$config = new \phpbb\config\config(array());
|
||||
$request = $this->getMock('\phpbb\request\request');
|
||||
$user = $this->getMock('\phpbb\user');
|
||||
|
||||
$auth_provider = new phpbb_auth_provider_db($db, $config, $request, $user, $phpbb_root_path, $phpEx);
|
||||
$auth_provider = new \phpbb\auth\provider\db($db, $config, $request, $user, $phpbb_root_path, $phpEx);
|
||||
$phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
|
||||
$phpbb_container->expects($this->any())
|
||||
->method('get')
|
||||
|
@@ -59,10 +59,10 @@ class phpbb_session_testable_factory
|
||||
/**
|
||||
* Retrieve the configured session class instance
|
||||
*
|
||||
* @param phpbb_db_driver $dbal The database connection to use for session data
|
||||
* @param \phpbb\db\driver\driver $dbal The database connection to use for session data
|
||||
* @return phpbb_mock_session_testable A session instance
|
||||
*/
|
||||
public function get_session(phpbb_db_driver $dbal)
|
||||
public function get_session(\phpbb\db\driver\driver $dbal)
|
||||
{
|
||||
// set up all the global variables used by session
|
||||
global $SID, $_SID, $db, $config, $cache, $request;
|
||||
@@ -75,7 +75,7 @@ class phpbb_session_testable_factory
|
||||
);
|
||||
request_var(null, null, null, null, $request);
|
||||
|
||||
$config = $this->config = new phpbb_config($this->get_config_data());
|
||||
$config = $this->config = new \phpbb\config\config($this->get_config_data());
|
||||
set_config(null, null, null, $config);
|
||||
|
||||
$db = $dbal;
|
||||
|
Reference in New Issue
Block a user