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 211da90 commit be5fe37Copy full SHA for be5fe37
testing/http_authentication.rst
@@ -85,6 +85,7 @@ needs::
85
86
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
87
use Symfony\Component\BrowserKit\Cookie;
88
+ use Symfony\Component\HttpFoundation\Response;
89
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
90
91
class DefaultControllerTest extends WebTestCase
@@ -101,7 +102,7 @@ needs::
101
102
$this->logIn();
103
$crawler = $this->client->request('GET', '/admin');
104
- $this->assertTrue($this->client->getResponse()->isSuccessful());
105
+ $this->assertSame(Response::HTTP_OK, $this->client->getResponse());
106
$this->assertSame('Admin Dashboard', $crawler->filter('h1')->text());
107
}
108
0 commit comments