From ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 1 May 2014 14:23:39 +0200 Subject: [ticket/12352] Revert to db auth provider if default does not exist This will make sure that we will not encounter a non-existing auth provider. We will revert to the default db auth provider if the one set in the config does not exist in our auth provider collection. PHPBB3-12352 --- tests/session/testable_factory.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/session') diff --git a/tests/session/testable_factory.php b/tests/session/testable_factory.php index 81724cf661..4bd7fa1366 100644 --- a/tests/session/testable_factory.php +++ b/tests/session/testable_factory.php @@ -96,6 +96,10 @@ class phpbb_session_testable_factory 'auth.provider.db', new phpbb_mock_auth_provider() ); + $phpbb_container->set( + 'auth.provider_collection', + array('auth.provider.db' => $phpbb_container->get('auth.provider.db')) + ); $session = new phpbb_mock_session_testable; return $session; -- cgit v1.2.1