Skip to content

Commit e58e5e4

Browse files
committed
MC-19099: Add tests for the Reading deprecated annotation from the schema
- Added changes in test for the reading deprecated annotation
1 parent 6c68b92 commit e58e5e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/GraphQl/Config/GraphQlDeprecatedAnnotationReaderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,20 @@ enumValues(includeDeprecated: true) {
209209

210210
foreach($fieldsArray as $field){
211211
if ( $field['isDeprecated'] === true){
212-
$typeDeprecatedReason = $field['deprecationReason'];
212+
$typeDeprecatedReason [] = $field['deprecationReason'];
213213
}
214214
}
215215
$this->assertNotEmpty($typeDeprecatedReason);
216-
$this->assertEquals('Deprecated url_path test', $typeDeprecatedReason);
216+
$this->assertContains('Deprecated url_path test', $typeDeprecatedReason);
217217

218218
foreach($enumValuesArray as $enumValue){
219219
if ( $enumValue['isDeprecated'] === true){
220-
$enumValueDeprecatedReason = $enumValue['deprecationReason'];
220+
$enumValueDeprecatedReason [] = $enumValue['deprecationReason'];
221221
}
222222
}
223223

224224
$this->assertNotEmpty($enumValueDeprecatedReason);
225-
$this->assertEquals('Deprecated SortEnum Value test',$enumValueDeprecatedReason);
225+
$this->assertContains('Deprecated SortEnum Value test',$enumValueDeprecatedReason);
226226

227227
}
228228
}

0 commit comments

Comments
 (0)