mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 12:46:38 +02:00
[ticket/11608] add search functional tests to search subfolder
PHPBB3-11608
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
/**
|
/**
|
||||||
* @group functional
|
* @group functional
|
||||||
*/
|
*/
|
||||||
abstract class phpbb_functional_search_test extends phpbb_functional_test_case
|
abstract class phpbb_functional_search_base_test extends phpbb_functional_test_case
|
||||||
{
|
{
|
||||||
protected function assert_search_found($keywords)
|
protected function assert_search_found($keywords)
|
||||||
{
|
{
|
||||||
@ -47,11 +47,10 @@ abstract class phpbb_functional_search_test extends phpbb_functional_test_case
|
|||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
|
|
||||||
// check if search backend is not supported
|
// check if search backend is not supported
|
||||||
if ($crawler->filter('.errorbox')->count() > 0);
|
if ($crawler->filter('.errorbox')->count() > 0)
|
||||||
{
|
{
|
||||||
$this->markTestSkipped("Search backend is not supported/running");
|
$this->markTestSkipped("Search backend is not supported/running");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->create_search_index();
|
$this->create_search_index();
|
||||||
}
|
}
|
||||||
|
|
@ -7,12 +7,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/search_test.php';
|
require_once dirname(__FILE__) . '/base_test.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group functional
|
* @group functional
|
||||||
*/
|
*/
|
||||||
class phpbb_functional_search_mysql_test extends phpbb_functional_search_test
|
class phpbb_functional_search_mysql_test extends phpbb_functional_search_base_test
|
||||||
{
|
{
|
||||||
protected $search_backend;
|
protected $search_backend;
|
||||||
|
|
@ -7,12 +7,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/search_test.php';
|
require_once dirname(__FILE__) . '/base_test.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group functional
|
* @group functional
|
||||||
*/
|
*/
|
||||||
class phpbb_functional_search_native_test extends phpbb_functional_search_test
|
class phpbb_functional_search_native_test extends phpbb_functional_search_base_test
|
||||||
{
|
{
|
||||||
protected $search_backend;
|
protected $search_backend;
|
||||||
|
|
@ -7,12 +7,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/search_test.php';
|
require_once dirname(__FILE__) . '/base_test.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group functional
|
* @group functional
|
||||||
*/
|
*/
|
||||||
class phpbb_functional_search_postgres_test extends phpbb_functional_search_test
|
class phpbb_functional_search_postgres_test extends phpbb_functional_search_base_test
|
||||||
{
|
{
|
||||||
protected $search_backend;
|
protected $search_backend;
|
||||||
|
|
@ -7,12 +7,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/search_test.php';
|
require_once dirname(__FILE__) . '/base_test.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group functional
|
* @group functional
|
||||||
*/
|
*/
|
||||||
class phpbb_functional_search_sphinx_test extends phpbb_functional_search_test
|
class phpbb_functional_search_sphinx_test extends phpbb_functional_search_base_test
|
||||||
{
|
{
|
||||||
protected $search_backend;
|
protected $search_backend;
|
||||||
|
|
Reference in New Issue
Block a user