[ticket/11255] Change search tests to use mock cache.

PHPBB3-11255
This commit is contained in:
Oleg Pudeyev 2012-12-07 15:32:26 -05:00
parent 5b368dd53a
commit 5af3d14af3
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ class phpbb_search_mysql_test extends phpbb_search_common_test_case
parent::setUp(); parent::setUp();
// dbal uses cache // dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null); $cache = new phpbb_mock_cache();
// set config values // set config values
$config['fulltext_mysql_min_word_len'] = 4; $config['fulltext_mysql_min_word_len'] = 4;

View file

@ -26,7 +26,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
parent::setUp(); parent::setUp();
// dbal uses cache // dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null); $cache = new phpbb_mock_cache();
$this->db = $this->new_dbal(); $this->db = $this->new_dbal();
$error = null; $error = null;

View file

@ -26,7 +26,7 @@ class phpbb_search_postgres_test extends phpbb_search_common_test_case
parent::setUp(); parent::setUp();
// dbal uses cache // dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null); $cache = new phpbb_mock_cache();
// set config values // set config values
$config['fulltext_postgres_min_word_len'] = 4; $config['fulltext_postgres_min_word_len'] = 4;