mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
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
This commit is contained in:
@@ -33,6 +33,25 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
|
||||
$this->assertContains('anothertestuser', $crawler->filter('#username_logged_in')->text());
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user