mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 07:01:22 +02:00
Merge remote-tracking branch 'p/ticket/11255' into develop
* p/ticket/11255: [ticket/11255] Change search tests to use mock cache. [ticket/11255] Fix dbal write sequence test to run standalone.
This commit is contained in:
@@ -33,6 +33,10 @@ class phpbb_dbal_write_sequence_test extends phpbb_database_test_case
|
|||||||
{
|
{
|
||||||
$db = $this->new_dbal();
|
$db = $this->new_dbal();
|
||||||
|
|
||||||
|
// dbal uses cache
|
||||||
|
global $cache;
|
||||||
|
$cache = new phpbb_mock_cache();
|
||||||
|
|
||||||
$sql = 'INSERT INTO phpbb_users ' . $db->sql_build_array('INSERT', array(
|
$sql = 'INSERT INTO phpbb_users ' . $db->sql_build_array('INSERT', array(
|
||||||
'username' => $username,
|
'username' => $username,
|
||||||
'username_clean' => $username,
|
'username_clean' => $username,
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user