mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
[ticket/16211] Fix coppa registration test
PHPBB3-16211
This commit is contained in:
parent
417271f573
commit
c7ed162a06
@ -91,9 +91,8 @@ class phpbb_functional_registration_test extends phpbb_functional_test_case
|
|||||||
$crawler = self::request('GET', 'ucp.php?mode=register&coppa=1');
|
$crawler = self::request('GET', 'ucp.php?mode=register&coppa=1');
|
||||||
$this->assertContainsLang('COPPA_BIRTHDAY', $crawler->html());
|
$this->assertContainsLang('COPPA_BIRTHDAY', $crawler->html());
|
||||||
|
|
||||||
$agreement_url = $crawler->filter('#agreement')->filter('a')->links()[0]->getUri();
|
$form = $crawler->selectButton('coppa_yes')->form();
|
||||||
preg_match('/(&hash=\w+)/', $agreement_url, $matches);
|
$crawler = self::submit($form);
|
||||||
$crawler = self::request('GET', 'ucp.php?mode=register&coppa=1' . $matches[1]);
|
|
||||||
|
|
||||||
$this->assertContainsLang('REGISTRATION', $crawler->filter('div.content h2')->text());
|
$this->assertContainsLang('REGISTRATION', $crawler->filter('div.content h2')->text());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user