aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-11-02 01:29:04 +0100
committerNils Adermann <naderman@naderman.de>2014-11-02 01:29:04 +0100
commit29d2a7bc9f0afd074fd0b4afdf9015a70bd06940 (patch)
tree9cd85a9e108232a9b581199c9003600a22766c46 /tests/functional
parent9908f8e3eac3d662bcf49e9bf543f8c89cd48dc8 (diff)
parent0e772afb9db640e54e84cfccaddcf74f3edbb3fb (diff)
downloadforums-29d2a7bc9f0afd074fd0b4afdf9015a70bd06940.tar
forums-29d2a7bc9f0afd074fd0b4afdf9015a70bd06940.tar.gz
forums-29d2a7bc9f0afd074fd0b4afdf9015a70bd06940.tar.bz2
forums-29d2a7bc9f0afd074fd0b4afdf9015a70bd06940.tar.xz
forums-29d2a7bc9f0afd074fd0b4afdf9015a70bd06940.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/13271] Disable CC sender feature for anonymous users [prep-release-3.1.1] Add 3.1.1 CHANGELOG [prep-release-3.1.1] Add 3.1.1 migration file [ticket/13263] Make sure default style exists and clean up code [ticket/13263] Only install/set prosilver if no style available [ticket/13263] Use prosilver as default style if user's style doesn't exist [ticket/security-164] Correctly format page_name [ticket/security-164] Sanitize all global variables in symfony_request class [ticket/13248] Use functional framework login method in tests [ticket/13248] Correctly pass provider name [ticket/13248] Always use provider collection for getting provider [ticket/13248] Allow specifying different auth provider in provider collection [ticket/13248] Use auth provider collection for getting provider [ticket/13262] Mention htaccess file when updating from 3.0 to 3.1 [ticket/13267] Update Automatic Update instructions to include vendor directory [ticket/13268] Properly append ternary result in get_existing_indexes() [prep-release-3.1.1] Update version number to 3.1.1 Conflicts: build/build.xml phpBB/includes/constants.php phpBB/install/schemas/schema_data.sql phpBB/styles/prosilver/style.cfg phpBB/styles/subsilver2/style.cfg phpBB/styles/subsilver2/template/memberlist_email.html
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()