Skip to content

Commit 89963cc

Browse files
committed
bug #3463 Fix typos in cookbook/testing/database (ifdattic)
This PR was merged into the 2.3 branch. Discussion ---------- Fix typos in cookbook/testing/database | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Commits ------- b1a4f29 Fix typos in cookbook/testing/database
2 parents f9f7548 + b1a4f29 commit 89963cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: cookbook/testing/database.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Suppose the class you want to test looks like this::
4949
public function calculateTotalSalary($id)
5050
{
5151
$employeeRepository = $this->entityManager->getRepository('AcmeDemoBundle::Employee');
52-
$employee = $userRepository->find($id);
52+
$employee = $employeeRepository->find($id);
5353

5454
return $employee->getSalary() + $employee->getBonus();
5555
}
@@ -62,7 +62,6 @@ it's easy to pass a mock object within a test::
6262

6363
class SalaryCalculatorTest extends \PHPUnit_Framework_TestCase
6464
{
65-
6665
public function testCalculateTotalSalary()
6766
{
6867
// First, mock the object to be used in the test

0 commit comments

Comments
 (0)