Unused variables removed in MainControllerTest.

This commit is contained in:
Alexey Skobkin 2016-12-12 03:27:35 +03:00
parent 5843dfbd12
commit 706933b405

View file

@ -81,7 +81,7 @@ class MainControllerTest extends WebTestCase
public function testAjaxUserAutoComplete() public function testAjaxUserAutoComplete()
{ {
$client = static::createClient(); $client = static::createClient();
$crawler = $client->request('GET', '/ajax/users/search/testuser'); $client->request('GET', '/ajax/users/search/testuser');
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'), 'Response has "Content-Type" = "application/json"'); $this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'), 'Response has "Content-Type" = "application/json"');
@ -120,7 +120,7 @@ class MainControllerTest extends WebTestCase
public function testAjaxUserAutoCompleteForNonExistingUser() public function testAjaxUserAutoCompleteForNonExistingUser()
{ {
$client = static::createClient(); $client = static::createClient();
$crawler = $client->request('GET', '/ajax/users/search/aksdjhaskdjhqwhdgqkjwhdgkjah'); $client->request('GET', '/ajax/users/search/aksdjhaskdjhqwhdgqkjwhdgkjah');
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'), 'Response has "Content-Type" = "application/json"'); $this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'), 'Response has "Content-Type" = "application/json"');