diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1007.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1007.json | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1007.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1007.json new file mode 100644 index 00000000..4d2a2243 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1007.json @@ -0,0 +1,57 @@ +{ + "description": "Test sorting on Pages will not exclude non-existent pages from result (#540)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "knows page", + "contents": "[[Has type::Page]]" + }, + { + "page": "Example/P1007/1", + "contents": "[[knows page::Example/P1007/Ref 3]]" + }, + { + "page": "Example/P1007/2", + "contents": "[[knows page::Example/P1007/Ref 2]]" + }, + { + "page": "Example/P1007/3", + "contents": "[[knows page::Example/P1007/Ref 1]]" + }, + { + "page": "Example/P1007/Ref 1", + "contents": "SomeContent" + }, + { + "page": "Example/P1007/Ref 3", + "contents": "SomeContent" + }, + { + "page": "Example/P1007/Test", + "contents": "{{#ask:[[knows page::+]]|?knows page |sort=knows page|format=plainlist}}" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0 (verify pages referencing non-existent pages are included in the result)", + "subject": "Example/P1007/Test", + "assert-output": { + "to-contain": "Example/P1007/3.*Example/P1007/2.*Example/P1007/1" + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "SMW_NS_PROPERTY": true + } + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +} |