aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-11-01 22:41:27 +0100
committerNils Adermann <naderman@naderman.de>2014-11-01 22:41:27 +0100
commitdde1c7424f84c61c8b6dfdf23594535183c9f2f5 (patch)
treeb8b1abaa08dc33f8d48260490c879f61bc5fd472 /tests/functional
parentf3588c66ec22b71e779da1497a690802e1c6b51a (diff)
parent8aec6b58e087fa86c71baaccbeb07fe7a495aee5 (diff)
downloadforums-dde1c7424f84c61c8b6dfdf23594535183c9f2f5.tar
forums-dde1c7424f84c61c8b6dfdf23594535183c9f2f5.tar.gz
forums-dde1c7424f84c61c8b6dfdf23594535183c9f2f5.tar.bz2
forums-dde1c7424f84c61c8b6dfdf23594535183c9f2f5.tar.xz
forums-dde1c7424f84c61c8b6dfdf23594535183c9f2f5.zip
Merge pull request #3104 from marc1706/ticket/13248-alt
[ticket/13248] Login functions need to use provider collection for retrieving provider
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/auth_test.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/functional/auth_test.php b/tests/functional/auth_test.php
index b4b4279bf1..76e1709afb 100644
--- a/tests/functional/auth_test.php
+++ b/tests/functional/auth_test.php
@@ -34,6 +34,25 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
}
/**
+ * @dependsOn test_login_other
+ */
+ public function test_login_ucp_other_auth_provider()
+ {
+ global $cache, $config;
+ $cache = new phpbb_mock_null_cache;
+ $db = $this->get_db();
+ $sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = 'foobar' WHERE config_name = 'auth_method'";
+ $db->sql_query($sql);
+ $config['auth_method'] = 'foobar';
+ $this->login('anothertestuser');
+ $crawler = self::request('GET', 'index.php');
+ $this->assertContains('anothertestuser', $crawler->filter('#username_logged_in')->text());
+ $sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = 'db' WHERE config_name = 'auth_method'";
+ $db->sql_query($sql);
+ $config['auth_method'] = 'db';
+ }
+
+ /**
* @depends test_login
*/
public function test_logout()