From 8f96598d8ffb4e867337a1be7e6cafe4a5600052 Mon Sep 17 00:00:00 2001 From: Vyacheslav Demyanov Date: Tue, 10 Dec 2019 17:06:48 +0300 Subject: [PATCH] It's needed to change the returned string Following the documentation, we check the Calendar application and get the string "Yep, this is a leap year!" instead of "Hello Fabien". --- create_framework/unit_testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_framework/unit_testing.rst b/create_framework/unit_testing.rst index 3a0d0a5f5ff..099ada7e704 100644 --- a/create_framework/unit_testing.rst +++ b/create_framework/unit_testing.rst @@ -183,7 +183,7 @@ Response:: $response = $framework->handle(new Request()); $this->assertEquals(200, $response->getStatusCode()); - $this->assertContains('Hello Fabien', $response->getContent()); + $this->assertContains('Yep, this is a leap year!', $response->getContent()); } In this test, we simulate a route that matches and returns a simple