From 2cdbc7e3164b75255b5a901d18b5b01e81119ca7 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 6 Oct 2022 15:55:20 +0200 Subject: [PATCH] Aligned expected validation error message with kernel changes (#97) Error message changed in https://github.com/ezsystems/ezplatform-kernel/pull/329 --- .../ContentFieldValidationExceptionTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/Server/Output/ValueObjectVisitor/ContentFieldValidationExceptionTest.php b/tests/lib/Server/Output/ValueObjectVisitor/ContentFieldValidationExceptionTest.php index aacaa7f1..311c2caa 100644 --- a/tests/lib/Server/Output/ValueObjectVisitor/ContentFieldValidationExceptionTest.php +++ b/tests/lib/Server/Output/ValueObjectVisitor/ContentFieldValidationExceptionTest.php @@ -51,7 +51,7 @@ public function testVisit() */ public function testResultContainsErrorDescription($result) { - $this->assertXMLTag( + self::assertXMLTag( [ 'tag' => 'errorDescription', 'content' => $this->getExpectedDescription(), @@ -70,7 +70,7 @@ public function testResultContainsErrorDescription($result) */ public function testResultContainsErrorDetails($result) { - $this->assertXMLTag( + self::assertXMLTag( [ 'tag' => 'errorDetails', ], @@ -78,7 +78,7 @@ public function testResultContainsErrorDetails($result) 'Missing element.' ); - $this->assertXMLTag( + self::assertXMLTag( [ 'tag' => 'field', ], @@ -114,7 +114,7 @@ protected function getExpectedMessage() */ protected function getExpectedDescription() { - return 'Content Fields did not validate'; + return 'Content fields did not validate'; } /**