We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0927f6 commit 30d97dcCopy full SHA for 30d97dc
Tests/Functional/ViewResponseListenerTest.php
@@ -35,4 +35,12 @@ public function testRedirect()
35
$this->assertSame('http://localhost/hello/Post%201', $client->getResponse()->headers->get('location'));
36
$this->assertStringNotContainsString('fooo', $client->getResponse()->getContent());
37
}
38
+
39
+ public function testControllerReturnsView()
40
+ {
41
+ $client = $this->createClient(['test_case' => 'ViewResponseListener']);
42
+ $client->request('GET', '/articles.json');
43
44
+ $this->assertTrue($client->getResponse()->isSuccessful());
45
+ }
46
0 commit comments