Issue #2080373 by mrsinguyen: Remove Unused local variable $response from /core/modules/rest/lib/Drupal/rest/Tests/ReadTest.php.
parent
7d675ad098
commit
2c77a334c7
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue