Merge pull request #9566 from owncloud/findAcceptedUser

[test-only] Find accepted user
This commit is contained in:
Viktor Scharf
2024-07-10 10:36:49 +02:00
committed by GitHub
4 changed files with 172 additions and 4 deletions
@@ -1246,13 +1246,13 @@ class FeatureContext extends BehatVariablesContext {
}
/**
* @param object $json
* @param object|array $json
* @param object $schema
*
* @return void
* @throws Exception
*/
public function assertJsonDocumentMatchesSchema(object $json, object $schema): void {
public function assertJsonDocumentMatchesSchema(object|array $json, object $schema): void {
$schema = JsonSchema::import($schema);
$this->validateSchemaRequirements($schema);
$schema->in($json);