mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11608] Skip tests for unsupported search backends
PHPBB3-11608
This commit is contained in:
parent
ea75b67f5e
commit
c33c89a790
1 changed files with 10 additions and 4 deletions
|
@ -64,14 +64,20 @@ class phpbb_functional_search_test extends phpbb_functional_test_case
|
||||||
$values = $form->getValues();
|
$values = $form->getValues();
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
|
|
||||||
file_put_contents('log' . $search_backend . '.html', $crawler->text());
|
try
|
||||||
}
|
|
||||||
|
|
||||||
$this->create_search_index($search_backend);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function create_search_index($search_backend)
|
|
||||||
{
|
{
|
||||||
|
$crawler->filter('.errorbox')->text();
|
||||||
|
self::markTestSkipped("Search backend is not supported/running");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
catch (InvalidArgumentException $e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->create_search_index($crawler);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function create_search_index($create_index_crawler)
|
||||||
|
{
|
||||||
|
var_dump($create_index_crawler->selectLink('Go to search index page'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue