Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Moln committed Jan 9, 2022
1 parent 7a94eb2 commit 7c77800
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Opis/Filter/DbalRecordExistsFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testInValidator(): void
{"key": "exists"}
JSON;
$data = json_decode($data);
$result = $validator->validate($data, 'test:test/test-db-filter.json');
$result = $validator->validate($data, 'test:test/test-dbal-filter.json');

$this->assertTrue($result->isValid());
}
Expand Down
23 changes: 23 additions & 0 deletions test/test-dbal-filter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"$filters": [
{
"$func": "dbal-exists",
"$vars": {
"db": "dbal",
"table": "foo",
"field": "key",
"exists": true
}
}
]
}
},
"required": ["key"],
"additionalProperties": false
}

0 comments on commit 7c77800

Please sign in to comment.