diff --git a/cookbook/testing/database.rst b/cookbook/testing/database.rst index cccf13136e5..04c8d07ee48 100644 --- a/cookbook/testing/database.rst +++ b/cookbook/testing/database.rst @@ -49,7 +49,7 @@ Suppose the class you want to test looks like this:: public function calculateTotalSalary($id) { $employeeRepository = $this->entityManager - ->getRepository('AppBundle::Employee'); + ->getRepository('AppBundle:Employee'); $employee = $employeeRepository->find($id); return $employee->getSalary() + $employee->getBonus();