mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 20:40:24 +02:00
[ticket/11608] Skip tests for unsupported search backends
PHPBB3-11608
This commit is contained in:
@@ -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'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user