From cafd3b79fdf4d567e25841fa02da035d8dee33fa Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 25 Oct 2014 20:05:25 -0700 Subject: [PATCH] [ticket/13207] Use assert_checkbox_is_checked for registration test PHPBB3-13207 --- tests/functional/registration_test.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/functional/registration_test.php b/tests/functional/registration_test.php index 26473c4fcd..690f4ae9f2 100644 --- a/tests/functional/registration_test.php +++ b/tests/functional/registration_test.php @@ -61,8 +61,7 @@ class phpbb_functional_registration_test extends phpbb_functional_test_case { $this->login('user-reg-test'); $crawler = self::request('GET', 'ucp.php?i=ucp_notifications&mode=notification_options&sid=' . $this->sid); - $form_values = $crawler->selectButton('Submit')->form()->getValues(); - $this->assertEquals(1, $form_values['notification.type.post_notification.method.email']); - $this->assertEquals(1, $form_values['notification.type.topic_notification.method.email']); + $this->assert_checkbox_is_checked($crawler, 'notification.type.post_notification.method.email'); + $this->assert_checkbox_is_checked($crawler, 'notification.type.topic_notification.method.email'); } }