diff --git a/testing/database.rst b/testing/database.rst index 363520fd913..9c97522fb2e 100644 --- a/testing/database.rst +++ b/testing/database.rst @@ -86,7 +86,7 @@ it's easy to pass a mock object within a test:: // Now, mock the repository so it returns the mock of the employee $employeeRepository = $this - ->getMockBuilder(EntityManagerInterface::class) + ->getMockBuilder(EntityRepository::class) ->disableOriginalConstructor() ->getMock(); $employeeRepository->expects($this->once())