diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json new file mode 100644 index 00000000..0abdab74 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json @@ -0,0 +1,47 @@ +{ + "description": "Test `_INST` query (#1004, en)", + "setup": [ + { + "namespace": "NS_CATEGORY", + "page": "Foo", + "contents": "" + }, + { + "page": "Page-with-category", + "contents": "[[Category:Foo]]" + } + ], + "tests": [ + { + "type": "query", + "about": "#0 query pages with annotated category", + "condition": "[[Category:Foo]]", + "printouts": [ + "_INST" + ], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Page-with-category#0##" + ], + "datavalues": [ + { + "property": "_INST", + "value": "Foo" + } + ] + } + } + ], + "settings": { + "wgContLang": "en" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |