mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-05 01:15:46 +02:00
[ticket/11620] Rename provider -> mock_auth_provider
Rename the class and file name to better match what the class is mocking, as well as implement the interface of that class. PHPBB3-11620
This commit is contained in:
@ -14,7 +14,8 @@
|
||||
* See interface here:
|
||||
* includes/auth/provider/interface.php
|
||||
*/
|
||||
class phpbb_provider {
|
||||
class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
|
||||
{
|
||||
|
||||
function init()
|
||||
{
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/../mock/container_builder.php';
|
||||
require_once dirname(__FILE__) . '/../mock/provider.php';
|
||||
require_once dirname(__FILE__) . '/../mock/auth_provider.php';
|
||||
|
||||
/**
|
||||
* This class exists to setup an instance of phpbb's session class for testing.
|
||||
@ -90,7 +90,7 @@ class phpbb_session_testable_factory
|
||||
$phpbb_container = $this->container = new phpbb_mock_container_builder();
|
||||
$phpbb_container->set(
|
||||
'auth.provider.db',
|
||||
new phpbb_provider()
|
||||
new phpbb_mock_auth_provider()
|
||||
);
|
||||
|
||||
$session = new phpbb_mock_session_testable;
|
||||
|
Reference in New Issue
Block a user