diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json new file mode 100644 index 00000000..f46b9c7f --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json @@ -0,0 +1,54 @@ +{ + "description": "Test `_wpg` empty chain/subquery (AND, OR)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has page", + "contents": "[[Has type::Page]]" + }, + { + "page": "Q0911/1", + "contents": "[[Has page::Q0911]]" + } + ], + "tests": [ + { + "type": "query", + "about": "#0 (OR)", + "condition": "[[Has page::Q0911]] OR [[Some page.Another page::Foo]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Q0911/1#0##" + ] + } + }, + { + "type": "query", + "about": "#1 (AND)", + "condition": "[[Has page::Q0911]] [[Some page.Another page::Foo]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 0 + } + } + ], + "settings": { + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "SMW_NS_PROPERTY": true + } + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |