From a3271a2de132b2c5f050244742298bab6e7a001c Mon Sep 17 00:00:00 2001 From: Massimo Ruggirello Date: Mon, 5 Jun 2017 18:48:37 +0200 Subject: [PATCH] Update database.rst Fix typo: EntityManagerInterface to EntityRepository --- testing/database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())