aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-05-01 14:23:39 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-06-01 21:31:04 +0200
commited1d4fe4a03c55bbc997f11afa11a87b4fe78c4d (patch)
tree25f29200b3fab2d6426f17e4f75e677fffc08c7e /tests/session
parent68f59defb041a719519547fdd34f25258a60a38e (diff)
downloadforums-ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d.tar
forums-ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d.tar.gz
forums-ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d.tar.bz2
forums-ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d.tar.xz
forums-ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d.zip
[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
Diffstat (limited to 'tests/session')
-rw-r--r--tests/session/testable_factory.php4
1 files changed, 4 insertions, 0 deletions
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;