aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-11-28 07:39:51 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-11-28 07:39:51 +0100
commitc7ed162a0627a0cfcf000631f236fbb7f6722ba3 (patch)
tree719f56471e59e8feaed8a03ec94bb6a5706c203b /tests
parent417271f5738b0a73bc3dba28f516675ca3d146ea (diff)
downloadforums-c7ed162a0627a0cfcf000631f236fbb7f6722ba3.tar
forums-c7ed162a0627a0cfcf000631f236fbb7f6722ba3.tar.gz
forums-c7ed162a0627a0cfcf000631f236fbb7f6722ba3.tar.bz2
forums-c7ed162a0627a0cfcf000631f236fbb7f6722ba3.tar.xz
forums-c7ed162a0627a0cfcf000631f236fbb7f6722ba3.zip
[ticket/16211] Fix coppa registration test
PHPBB3-16211
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());