[ticket/13207] Use assert_checkbox_is_checked for registration test

PHPBB3-13207
This commit is contained in:
Marc Alexander 2014-10-25 20:05:25 -07:00
parent a5830fe0d5
commit cafd3b79fd

View file

@ -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']);
} }
} }