[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();
|
parent::setUp();
|
||||||
|
|
||||||
$user = $this->getMock('\phpbb\user', array('optionget'));
|
$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())
|
$cache->expects($this->any())
|
||||||
->method('obtain_word_list')
|
->method('obtain_word_list')
|
||||||
->with()
|
->with()
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class phpbb_unit_functions_get_user_groups_test extends \board3\portal\tests\tes
|
|||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$user = $this->getMock('\phpbb\user', array('optionget'));
|
$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())
|
$cache->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with($this->anything())
|
->with($this->anything())
|
||||||
|
|||||||
Reference in New Issue
Block a user