.../src/Functional/EntityResource/Comment/CommentResourceTestBase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php index dcd37f1..4bb0493 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php @@ -288,9 +288,8 @@ public function testPostDxWithoutCriticalBaseFields() { // https://www.drupal.org/node/2820364. try { $response = $this->request('POST', $url, $request_options); - // PHP 5: fatal error is not catchable, PHP prints it in a 200 response. + // PHP 5: fatal error is not catchable, PHP prints it directly. if (version_compare(phpversion(), '7.0') < 0) { - $this->assertSame(200, $response->getStatusCode()); $body = (string) $response->getBody(); $this->assertTrue(strpos($body, 'Call to a member function get() on') !== FALSE); $this->assertTrue(strpos($body, 'CommentNameConstraintValidator.php') !== FALSE);