mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13207] Use assert_checkbox_is_checked for registration test
PHPBB3-13207
This commit is contained in:
parent
a5830fe0d5
commit
cafd3b79fd
1 changed files with 2 additions and 3 deletions
|
@ -61,8 +61,7 @@ class phpbb_functional_registration_test extends phpbb_functional_test_case
|
||||||
{
|
{
|
||||||
$this->login('user-reg-test');
|
$this->login('user-reg-test');
|
||||||
$crawler = self::request('GET', 'ucp.php?i=ucp_notifications&mode=notification_options&sid=' . $this->sid);
|
$crawler = self::request('GET', 'ucp.php?i=ucp_notifications&mode=notification_options&sid=' . $this->sid);
|
||||||
$form_values = $crawler->selectButton('Submit')->form()->getValues();
|
$this->assert_checkbox_is_checked($crawler, 'notification.type.post_notification.method.email');
|
||||||
$this->assertEquals(1, $form_values['notification.type.post_notification.method.email']);
|
$this->assert_checkbox_is_checked($crawler, 'notification.type.topic_notification.method.email');
|
||||||
$this->assertEquals(1, $form_values['notification.type.topic_notification.method.email']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue