mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12733] Add functional test for twitter profile field
PHPBB3-12733
This commit is contained in:
parent
abc55dcb40
commit
cdfcbfc6d0
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue