diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-1107.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-1107.json | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-1107.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-1107.json new file mode 100644 index 00000000..5f2e6dce --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-1107.json @@ -0,0 +1,84 @@ +{ + "description": "Test `_rec`/`_mlt_rec`(`_PDESC`) to use property chaining (`wgContLang=en`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has text", + "contents": "[[Has type::Text]] [[Has property description::Text property@en]] [[Category:Q1107]]" + }, + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has number", + "contents": "[[Has type::Number]] [[Has property description::Number property@en]] [[Category:Q1107]]" + }, + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has record text", + "contents": "[[Has type::Record]] [[Has fields::Has text;Has number]]" + }, + { + "page": "Example/Q1107/1", + "contents": "{{#subobject: Test|Has text=Foo|Has record text=abc;222}}" + } + ], + "tests": [ + { + "type": "query", + "about": "#0", + "condition": "[[Category:Q1107]] [[Has property description.Language code::en]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 2, + "results": [ + "Has text#102##", + "Has number#102##" + ] + }, + "store": { + "clear-cache": true + } + }, + { + "type": "query", + "about": "#1", + "condition": "[[Has subobject.Has record text.Has number::222]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Example/Q1107/1#0##" + ] + } + }, + { + "type": "query", + "about": "#2", + "condition": "[[Has record text.Has number::222]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Example/Q1107/1#0##Test" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |