mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
cd1fe789d2
commit
f51721e905
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue