[ticket/303] Add sql_exists to cache mock
B3P-303
This commit is contained in:
@@ -25,7 +25,7 @@ class phpbb_unit_functions_functions_test extends \board3\portal\tests\testframe
|
||||
parent::setUp();
|
||||
|
||||
$user = $this->getMock('\phpbb\user', array('optionget'));
|
||||
$cache = $this->getMock('\phpbb\cache\cache', array('obtain_word_list'));
|
||||
$cache = $this->getMock('\phpbb\cache\cache', array('obtain_word_list', 'sql_exists'));
|
||||
$cache->expects($this->any())
|
||||
->method('obtain_word_list')
|
||||
->with()
|
||||
|
||||
@@ -23,7 +23,7 @@ class phpbb_unit_functions_get_user_groups_test extends \board3\portal\tests\tes
|
||||
parent::setUp();
|
||||
|
||||
$user = $this->getMock('\phpbb\user', array('optionget'));
|
||||
$cache = $this->getMock('\phpbb\cache\cache', array('get', 'put'));
|
||||
$cache = $this->getMock('\phpbb\cache\cache', array('get', 'put', 'sql_exists'));
|
||||
$cache->expects($this->any())
|
||||
->method('get')
|
||||
->with($this->anything())
|
||||
|
||||
Reference in New Issue
Block a user