mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16909] Fix Postgres configuration on Windows, fix auth tests
PHPBB3-16909
This commit is contained in:
parent
29d137cc5e
commit
89ca3f087e
2 changed files with 3 additions and 2 deletions
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
@ -561,6 +561,7 @@ jobs:
|
||||||
}
|
}
|
||||||
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
|
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
|
||||||
$env:PGPASSWORD = 'root'
|
$env:PGPASSWORD = 'root'
|
||||||
|
psql -c hot_standby=on
|
||||||
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
|
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
|
||||||
psql -c 'create database phpbb_tests;' -U postgres
|
psql -c 'create database phpbb_tests;' -U postgres
|
||||||
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender
|
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender
|
||||||
|
|
|
@ -101,7 +101,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
|
||||||
$this->assertStringContainsString($this->lang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE'), $crawler->filter('h3')->text());
|
$this->assertStringContainsString($this->lang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE'), $crawler->filter('h3')->text());
|
||||||
$form = $crawler->selectButton($this->lang('UCP_AUTH_LINK_LINK'))->form();
|
$form = $crawler->selectButton($this->lang('UCP_AUTH_LINK_LINK'))->form();
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
$this->assertStringContainsString('Google Accounts', $crawler->filter('title')->text());
|
$this->assertStringContainsString('accounts.google.com', $crawler->filter('base')->attr('href'));
|
||||||
|
|
||||||
// Test OAuth linking for registration
|
// Test OAuth linking for registration
|
||||||
$this->logout();
|
$this->logout();
|
||||||
|
@ -111,7 +111,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
$this->assertContainsLang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE', $crawler->filter('a[class="button2"]')->text());
|
$this->assertContainsLang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE', $crawler->filter('a[class="button2"]')->text());
|
||||||
$crawler = self::request('GET', 'ucp.php?mode=login&login=external&oauth_service=google');
|
$crawler = self::request('GET', 'ucp.php?mode=login&login=external&oauth_service=google');
|
||||||
$this->assertStringContainsString('Google Accounts', $crawler->filter('title')->text());
|
$this->assertStringContainsString('accounts.google.com', $crawler->filter('base')->attr('href'));
|
||||||
|
|
||||||
// Restore default auth method, but unset random keys first
|
// Restore default auth method, but unset random keys first
|
||||||
// Restart webclient as we were redirected to external site before
|
// Restart webclient as we were redirected to external site before
|
||||||
|
|
Loading…
Add table
Reference in a new issue