[ticket/12733] Add functional test for twitter profile field

PHPBB3-12733
This commit is contained in:
Shitiz Garg 2014-06-20 21:12:02 +05:30
parent abc55dcb40
commit cdfcbfc6d0

View file

@ -26,6 +26,7 @@ class phpbb_functional_ucp_profile_test extends phpbb_functional_test_case
$form = $crawler->selectButton('Submit')->form(array( $form = $crawler->selectButton('Submit')->form(array(
'pf_phpbb_location' => 'Bertie´s Empire', 'pf_phpbb_location' => 'Bertie´s Empire',
'pf_phpbb_twitter' => 'phpbb_twitter',
)); ));
$crawler = self::submit($form); $crawler = self::submit($form);
$this->assertContainsLang('PROFILE_UPDATED', $crawler->filter('#message')->text()); $this->assertContainsLang('PROFILE_UPDATED', $crawler->filter('#message')->text());
@ -33,5 +34,6 @@ class phpbb_functional_ucp_profile_test extends phpbb_functional_test_case
$crawler = self::request('GET', 'ucp.php?i=ucp_profile&mode=profile_info'); $crawler = self::request('GET', 'ucp.php?i=ucp_profile&mode=profile_info');
$form = $crawler->selectButton('Submit')->form(); $form = $crawler->selectButton('Submit')->form();
$this->assertEquals('Bertie´s Empire', $form->get('pf_phpbb_location')->getValue()); $this->assertEquals('Bertie´s Empire', $form->get('pf_phpbb_location')->getValue());
$this->assertEquals('phpbb_twitter', $form->get('pf_phpbb_twitter')->getValue());
} }
} }