diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-10-25 16:16:25 -0700 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-10-25 16:16:25 -0700 |
commit | 0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46 (patch) | |
tree | 3a14ab74c35a76081d53361b143c454f21b7473e /tests | |
parent | 81ad381263436bc2a5ef1a18388e1ed5c48eac9d (diff) | |
download | forums-0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46.tar forums-0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46.tar.gz forums-0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46.tar.bz2 forums-0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46.tar.xz forums-0dcb874c0987156b0c4bb2ef4e935ff6b6f2fd46.zip |
[ticket/13207] Add notification manager mock to user_add method in tests
PHPBB3-13207
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 49cc72363e..840ff981cb 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -556,12 +556,10 @@ class phpbb_functional_test_case extends phpbb_test_case $cache = new phpbb_mock_null_cache; $cache_driver = new \phpbb\cache\driver\null(); - $phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); - $phpbb_container - ->expects($this->any()) - ->method('get') - ->with('cache.driver') - ->will($this->returnValue($cache_driver)); + $phpbb_container = new phpbb_mock_container_builder(); + $phpbb_container->set('cache.driver', $cache_driver); + $phpbb_notifications = new phpbb_mock_notification_manager(); + $phpbb_container->set('notification_manager', $phpbb_notifications); if (!function_exists('utf_clean_string')) { |