diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-06-09 18:57:05 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-06-09 18:57:05 +0200 |
commit | 65884bf2bd754343410a5b3d8b4eea2343dc42e9 (patch) | |
tree | 6003d6c6324c616130b06f85693101ac0e6b9482 /tests/test_framework | |
parent | b8151b1299c02506ffa0d665461d85e32cd4cd10 (diff) | |
download | forums-65884bf2bd754343410a5b3d8b4eea2343dc42e9.tar forums-65884bf2bd754343410a5b3d8b4eea2343dc42e9.tar.gz forums-65884bf2bd754343410a5b3d8b4eea2343dc42e9.tar.bz2 forums-65884bf2bd754343410a5b3d8b4eea2343dc42e9.tar.xz forums-65884bf2bd754343410a5b3d8b4eea2343dc42e9.zip |
[ticket/11711] Reduce size of tests and also test topic titles
PHPBB3-11711
Diffstat (limited to 'tests/test_framework')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 182ffaaaf7..c0127c50c9 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -996,11 +996,16 @@ class phpbb_functional_test_case extends phpbb_test_case // Instead, I send it as a request with the submit button "post" set to true. $crawler = self::request('POST', $posting_url, $form_data); - if ($expected !== '') + if ($expected !== '' && isset($this->lang[$expected])) { $this->assertContainsLang($expected, $crawler->filter('html')->text()); return null; } + else if ($expected !== '') + { + $this->assertContains($expected, $crawler->filter('html')->text()); + return null; + } $url = $crawler->selectLink($form_data['subject'])->link()->getUri(); return array( |