[ticket/11608] add search functional tests to search subfolder

PHPBB3-11608
This commit is contained in:
Dhruv 2013-07-06 20:36:41 +05:30
parent 07c259f4b1
commit b31bb8653b
5 changed files with 10 additions and 11 deletions

View file

@ -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();
} }

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;