Skip to content

Commit

Permalink
[ticket/11255] Change search tests to use mock cache.
Browse files Browse the repository at this point in the history
PHPBB3-11255
  • Loading branch information
p committed Dec 7, 2012
1 parent 5b368dd commit 5af3d14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/search/mysql_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp()
parent::setUp();

// dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null);
$cache = new phpbb_mock_cache();

// set config values
$config['fulltext_mysql_min_word_len'] = 4;
Expand Down
2 changes: 1 addition & 1 deletion tests/search/native_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp()
parent::setUp();

// dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null);
$cache = new phpbb_mock_cache();

$this->db = $this->new_dbal();
$error = null;
Expand Down
2 changes: 1 addition & 1 deletion tests/search/postgres_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp()
parent::setUp();

// dbal uses cache
$cache = new phpbb_cache_service(new phpbb_cache_driver_null);
$cache = new phpbb_mock_cache();

// set config values
$config['fulltext_postgres_min_word_len'] = 4;
Expand Down

0 comments on commit 5af3d14

Please sign in to comment.