aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/registration_test.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/functional/registration_test.php b/tests/functional/registration_test.php
index be6dd50203..48982edc8c 100644
--- a/tests/functional/registration_test.php
+++ b/tests/functional/registration_test.php
@@ -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());