diff options
| author | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 13:17:42 +0200 |
|---|---|---|
| committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 16:25:30 +0200 |
| commit | 1c01252b5d899c488e007659234b6224ac3f4c19 (patch) | |
| tree | 3e2efbe676c75d237aefafccb0e77f2767e47ca8 /tests/installer/navigation_provider_test.php | |
| parent | 612eead5a9932d459d8b65f9217f895c33b51c39 (diff) | |
| download | forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.gz forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.bz2 forums-1c01252b5d899c488e007659234b6224ac3f4c19.tar.xz forums-1c01252b5d899c488e007659234b6224ac3f4c19.zip | |
[ticket/13740] Fix test stubs
PHPBB3-13740
Diffstat (limited to 'tests/installer/navigation_provider_test.php')
| -rw-r--r-- | tests/installer/navigation_provider_test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/installer/navigation_provider_test.php b/tests/installer/navigation_provider_test.php index 5bfce0eba8..ea39af66cd 100644 --- a/tests/installer/navigation_provider_test.php +++ b/tests/installer/navigation_provider_test.php @@ -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'); |
