Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1a4f29

Browse files
committed
Fix typos in cookbook/testing/database
1 parent42c80d1 commitb1a4f29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎cookbook/testing/database.rst

Lines changed: 1 addition & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp