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

Commit89963cc

Browse files
committed
bugsymfony#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 parentsf9f7548 +b1a4f29 commit89963cc

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