[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:
Andy Chase 2013-07-08 16:38:53 -07:00
parent cd1fe789d2
commit f51721e905
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,8 @@
* See interface here: * See interface here:
* includes/auth/provider/interface.php * includes/auth/provider/interface.php
*/ */
class phpbb_provider { class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
{
function init() function init()
{ {

View file

@ -8,7 +8,7 @@
*/ */
require_once dirname(__FILE__) . '/../mock/container_builder.php'; 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. * 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 = $this->container = new phpbb_mock_container_builder();
$phpbb_container->set( $phpbb_container->set(
'auth.provider.db', 'auth.provider.db',
new phpbb_provider() new phpbb_mock_auth_provider()
); );
$session = new phpbb_mock_session_testable; $session = new phpbb_mock_session_testable;