.../Functional/EntityResource/Comment/CommentResourceTestBase.php | 5 +++-- 1 file changed, 3 insertions(+), 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 d9758db..7205f9c 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php @@ -229,10 +229,11 @@ public function testPostDxWithoutCriticalBaseFields() { // @todo Remove the try/catch in favor of the two commented lines in https://www.drupal.org/node/2820364. try { $response = $this->request('POST', $url, $request_options); - var_dump($response->getBody()->getContents()); // @todo REMOVE, debug output only. - $this->fail('Request did not result in an exception.'); + // This happens on DrupalCI. + $this->assertSame(500, $response->getStatusCode()); } catch (\Exception $e) { + // This happens on Wim's local machine. $this->assertSame("Error: Call to a member function get() on null\nDrupal\\comment\\Plugin\\Validation\\Constraint\\CommentNameConstraintValidator->getAnonymousContactDetailsSetting()() (Line: 96)\n", $e->getMessage()); } //$response = $this->request('POST', $url, $request_options);