Skip to content

Commit dcc8162

Browse files
committed
adjust the number of times a mock method should be invoked
1 parent e647968 commit dcc8162

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/DependencyInjection/DoctrineCommandsTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,13 @@ public function getCommands() : array
6565
*/
6666
private function getKernel(ContainerBuilder $container)
6767
{
68-
$kernel = $this
69-
->getMockBuilder(KernelInterface::class)
70-
->getMock();
68+
$kernel = $this->createMock(KernelInterface::class);
7169

7270
$kernel
73-
->expects(self::any())
7471
->method('getContainer')
7572
->willReturn($container);
7673

7774
$kernel
78-
->expects(self::once())
7975
->method('getBundles')
8076
->willReturn([]);
8177

0 commit comments

Comments
 (0)