MainControllerTest code quality fix.

This commit is contained in:
Alexey Skobkin 2016-12-12 21:37:15 +03:00
parent 97dc750e08
commit ca0991a623

View file

@ -14,7 +14,7 @@ class MainControllerTest extends WebTestCase
$userSearchForm = $crawler->filter('form.form-inline')->form();
$userSearchForm['skobkin_bundle_pointtoolsbundle_user_search[login]'] = 'testuser';
$crawler = $client->submit($userSearchForm);
$client->submit($userSearchForm);
$this->assertTrue($client->getResponse()->isRedirect('/user/testuser'), 'Redirect to testuser\'s page didn\'t happen');
}