mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge pull request #2566 from marc1706/ticket/11711
[ticket/11711] Inform user of unsupported characters while posting * marc1706/ticket/11711: [ticket/11711] Improve coding and comments of character check [ticket/11711] Reduce size of tests and also test topic titles [ticket/11711] Improve checks for unsupported characters and check subject [ticket/11711] Inform user of unsupported characters while posting
This commit is contained in:
@@ -1076,9 +1076,17 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
|
||||
if ($expected !== '')
|
||||
{
|
||||
$this->assertContainsLang($expected, $crawler->filter('html')->text());
|
||||
if (isset($this->lang[$expected]))
|
||||
{
|
||||
$this->assertContainsLang($expected, $crawler->filter('html')->text());
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->assertContains($expected, $crawler->filter('html')->text());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
$url = $crawler->selectLink($form_data['subject'])->link()->getUri();
|
||||
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user