8000 minor #12798 It's needed to change the returned string in testControl… · maxperrimond/symfony-docs@c9dc31a · GitHub
[go: up one dir, main page]

Skip to content

Commit c9dc31a

Browse files
committed
minor symfony#12798 It's needed to change the returned string in testControllerResponse (demyanovs)
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes symfony#12798). Discussion ---------- It's needed to change the returned string in testControllerResponse Following the documentation, we check the Calendar application and get the string "Yep, this is a leap year!" instead of "Hello Fabien". <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 8f96598 It's needed to change the returned string
2 parents 17f8ab0 + 8f96598 commit c9dc31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/unit_testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Response::
183183
$response = $framework->handle(new Request());
184184

185185
$this->assertEquals(200, $response->getStatusCode());
186-
$this->assertContains('Hello Fabien', $response->getContent());
186+
$this->assertContains('Yep, this is a leap year!', $response->getContent());
187187
}
188188

189189
In this test, we simulate a route that matches and returns a simple

0 commit comments

Comments
 (0)
0