1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-30 03:30:17 +02:00

[ticket/13740] Fix test stubs

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-08 13:17:42 +02:00
parent 612eead5a9
commit 1c01252b5d
3 changed files with 14 additions and 25 deletions

View File

@@ -16,14 +16,14 @@ class phpbb_installer_navigation_provider_test extends phpbb_test_case
public function test_navigation()
{
// Mock nav interface
$nav_mock = $this->getMockBuilder('\phpbb\install\helper\navigation\navigation_interface')
->method('get')
->willReturn(array('foo' => 'bar'))
$nav_stub = $this->getMockBuilder('\phpbb\install\helper\navigation\navigation_interface')
->getMock();
$nav_stub->method('get')
->willReturn(array('foo' => 'bar'));
// Set up dependencies
$container = new phpbb_mock_container_builder();
$container->set('foo', $nav_mock);
$container->set('foo', $nav_stub);
$nav_collection = new \phpbb\di\service_collection($container);
$nav_collection->add('foo');