diff --git a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php index a4d3cde..332310e 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/Views/StyleSerializerTest.php @@ -153,11 +153,11 @@ public function testReponseFormatConfiguration() { // Should return a 200. // @todo This should be fixed when we have better content negotiation. $this->drupalGet('test/serialize/field', array(), array('Accept: */*')); - $this->assertResponse(200, 'A 200 response was returned when HTML was requested.'); + $this->assertResponse(200, 'A 200 response was returned when any format was requested.'); // Should return a 200. Emulates a sample Firefox header. $this->drupalGet('test/serialize/field', array(), array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8')); - $this->assertResponse(200, 'A 200 response was returned when HTML was requested.'); + $this->assertResponse(200, 'A 200 response was returned when a browser accept header was requested.'); // Should return a 200. $this->drupalGet('test/serialize/field', array(), array('Accept: application/json'));