mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/16211] Fix coppa registration test
PHPBB3-16211
This commit is contained in:
parent
417271f573
commit
c7ed162a06
1 changed files with 2 additions and 3 deletions
|
@ -91,9 +91,8 @@ class phpbb_functional_registration_test extends phpbb_functional_test_case
|
|||
$crawler = self::request('GET', 'ucp.php?mode=register&coppa=1');
|
||||
$this->assertContainsLang('COPPA_BIRTHDAY', $crawler->html());
|
||||
|
||||
$agreement_url = $crawler->filter('#agreement')->filter('a')->links()[0]->getUri();
|
||||
preg_match('/(&hash=\w+)/', $agreement_url, $matches);
|
||||
$crawler = self::request('GET', 'ucp.php?mode=register&coppa=1' . $matches[1]);
|
||||
$form = $crawler->selectButton('coppa_yes')->form();
|
||||
$crawler = self::submit($form);
|
||||
|
||||
$this->assertContainsLang('REGISTRATION', $crawler->filter('div.content h2')->text());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue