diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0621.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0621.json | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0621.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0621.json new file mode 100644 index 00000000..23d9b654 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0621.json @@ -0,0 +1,105 @@ +{ + "description": "Test `_wpg` and namespace using subquery construct", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has page", + "contents": "[[Has type::Page]]" + }, + { + "namespace": "NS_HELP", + "page": "Q0621", + "contents": "[[Has page::Q0621/1]] [[Category:Q0621]]" + }, + { + "namespace": "NS_HELP", + "page": "Q0621/1", + "contents": "[[Has page::Q0621/2]] [[Category:Q0621]]" + }, + { + "page": "Q0621/1", + "contents": "[[Has page::Help:Q0621]]" + }, + { + "page": "Q0621/2", + "contents": "[[Has page::Q0621/2]] [[Category:Q0621/1]]" + } + ], + "tests": [ + { + "type": "query", + "about": "#0", + "condition": "[[Has page::<q>[[Help:+]]</q>]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Q0621/1#0##" + ] + } + }, + { + "type": "query", + "about": "#1", + "condition": "[[Has page::<q>[[Help:+]] [[Has page::+]]</q>]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Q0621/1#0##" + ] + } + }, + { + "type": "query", + "about": "#2", + "condition": "[[Has page::<q>[[Help:+]] [[Has page::+]] [[Category:Q0621]]</q>]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Q0621/1#0##" + ] + } + }, + { + "type": "query", + "about": "#3", + "condition": "[[-Has page::<q>[[Help:+]] [[Has page::<q> [[Category:Q0621/1]]</q>]]</q>]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Q0621/2#0##" + ] + } + } + ], + "settings": { + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "NS_CATEGORY": true, + "SMW_NS_PROPERTY": true, + "NS_HELP": true + }, + "wgContLang": "en", + "wgLang": "en" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |