Issue #2080373 by mrsinguyen: Remove Unused local variable $response from /core/modules/rest/lib/Drupal/rest/Tests/ReadTest.php.

8.0.x
Nathaniel Catchpole 2013-12-03 14:17:56 +00:00
parent 7d675ad098
commit 2c77a334c7
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class ReadTest extends RESTTestBase {
$this->assertEqual($data['uuid'][0]['value'], $entity->uuid(), 'Entity UUID is correct');
// Try to read the entity with an unsupported mime format.
$response = $this->httpRequest('entity/' . $entity_type . '/' . $entity->id(), 'GET', NULL, 'application/wrongformat');
$this->httpRequest('entity/' . $entity_type . '/' . $entity->id(), 'GET', NULL, 'application/wrongformat');
$this->assertResponse(406);
// Try to read an entity that does not exist.