@@ -113,7 +113,7 @@ public static function assertMatchesJsonSchema(object|array|string $jsonSchema,
113
113
static ::assertThat (self ::getHttpResponse ()->toArray (false ), $ constraint , $ message );
114
114
}
115
115
116
- public static function assertMatchesResourceCollectionJsonSchema (string $ resourceClass , ?string $ operationName = null , string $ format = 'jsonld ' , ?array $ serializationContext = null ): void
116
+ public static function assertMatchesResourceCollectionJsonSchema (string $ resourceClass , ?string $ operationName = null , string $ format = 'jsonld ' , ?array $ serializationContext = null , ? int $ checkMode = null ): void
117
117
{
118
118
$ schemaFactory = self ::getSchemaFactory ();
119
119
@@ -127,10 +127,10 @@ public static function assertMatchesResourceCollectionJsonSchema(string $resourc
127
127
128
128
$ schema = $ schemaFactory ->buildSchema ($ resourceClass , $ format , Schema::TYPE_OUTPUT , $ operation , null , ($ serializationContext ?? []) + [BackwardCompatibleSchemaFactory::SCHEMA_DRAFT4_VERSION => true ]);
129
129
130
- static ::assertMatchesJsonSchema ($ schema ->getArrayCopy ());
130
+ static ::assertMatchesJsonSchema ($ schema ->getArrayCopy (), $ checkMode );
131
131
}
132
132
133
- public static function assertMatchesResourceItemJsonSchema (string $ resourceClass , ?string $ operationName = null , string $ format = 'jsonld ' , ?array $ serializationContext = null ): void
133
+ public static function assertMatchesResourceItemJsonSchema (string $ resourceClass , ?string $ operationName = null , string $ format = 'jsonld ' , ?array $ serializationContext = null , ? int $ checkMode = null ): void
134
134
{
135
135
$ schemaFactory = self ::getSchemaFactory ();
136
136
@@ -144,7 +144,7 @@ public static function assertMatchesResourceItemJsonSchema(string $resourceClass
144
144
145
145
$ schema = $ schemaFactory ->buildSchema ($ resourceClass , $ format , Schema::TYPE_OUTPUT , $ operation , null , ($ serializationContext ?? []) + [BackwardCompatibleSchemaFactory::SCHEMA_DRAFT4_VERSION => true ]);
146
146
147
- static ::assertMatchesJsonSchema ($ schema ->getArrayCopy ());
147
+ static ::assertMatchesJsonSchema ($ schema ->getArrayCopy (), $ checkMode );
148
148
}
149
149
150
150
/**
0 commit comments