Skip to content

Commit b1a4f29

Browse files
committedJan 11, 2014
Fix typos in cookbook/testing/database
1 parent 42c80d1 commit b1a4f29

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)