Skip to content

Commit a3271a2

Browse files
authored
Update database.rst
Fix typo: EntityManagerInterface to EntityRepository
1 parent c3f8980 commit a3271a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ it's easy to pass a mock object within a test::
8686

8787
// Now, mock the repository so it returns the mock of the employee
8888
$employeeRepository = $this
89-
->getMockBuilder(EntityManagerInterface::class)
89+
->getMockBuilder(EntityRepository::class)
9090
->disableOriginalConstructor()
9191
->getMock();
9292
$employeeRepository->expects($this->once())

0 commit comments

Comments
 (0)