diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-06-14 00:27:09 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-10-05 21:15:20 +0530 |
commit | c33c89a790ce0f816887b074afdaaebc1f8099c7 (patch) | |
tree | 3f7e514fcf3c7d5f0ee5df824dcb772077cf4cf4 /tests | |
parent | ea75b67f5e8986fe2cf36c88646bbb9db5da7893 (diff) | |
download | forums-c33c89a790ce0f816887b074afdaaebc1f8099c7.tar forums-c33c89a790ce0f816887b074afdaaebc1f8099c7.tar.gz forums-c33c89a790ce0f816887b074afdaaebc1f8099c7.tar.bz2 forums-c33c89a790ce0f816887b074afdaaebc1f8099c7.tar.xz forums-c33c89a790ce0f816887b074afdaaebc1f8099c7.zip |
[ticket/11608] Skip tests for unsupported search backends
PHPBB3-11608
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/search_test.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/functional/search_test.php b/tests/functional/search_test.php index db3b63c230..383e389745 100644 --- a/tests/functional/search_test.php +++ b/tests/functional/search_test.php @@ -64,14 +64,20 @@ class phpbb_functional_search_test extends phpbb_functional_test_case $values = $form->getValues(); $crawler = self::submit($form); - file_put_contents('log' . $search_backend . '.html', $crawler->text()); + try + { + $crawler->filter('.errorbox')->text(); + self::markTestSkipped("Search backend is not supported/running"); + + } + catch (InvalidArgumentException $e) {} } - $this->create_search_index($search_backend); + $this->create_search_index($crawler); } - protected function create_search_index($search_backend) + protected function create_search_index($create_index_crawler) { - + var_dump($create_index_crawler->selectLink('Go to search index page')); } } |