diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-26 14:11:42 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-26 14:39:34 -0500 |
commit | 185d4e112e2f1d01364aad36eb540294fa7c953b (patch) | |
tree | 3c6e9ccfc5bd6abe4e68d87b1905eb1c527b4441 /tests/test_framework | |
parent | 9573b36b3278aa374a7ea4fa72e6a81c459623b2 (diff) | |
download | forums-185d4e112e2f1d01364aad36eb540294fa7c953b.tar forums-185d4e112e2f1d01364aad36eb540294fa7c953b.tar.gz forums-185d4e112e2f1d01364aad36eb540294fa7c953b.tar.bz2 forums-185d4e112e2f1d01364aad36eb540294fa7c953b.tar.xz forums-185d4e112e2f1d01364aad36eb540294fa7c953b.zip |
[ticket/11744] Fix functional test case that's failing
PHPBB3-11744
Diffstat (limited to 'tests/test_framework')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index de3611c4cc..d1dab4c148 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -533,12 +533,9 @@ 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_container->set('notification_manager', new phpbb_mock_notification_manager()); if (!function_exists('utf_clean_string')) { |