diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json new file mode 100644 index 00000000..6eb67ec8 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json @@ -0,0 +1,35 @@ +{ + "description": "Test `#concept` on predefined property (`wgContLang=en`, `wgLang=es`)", + "setup": [ + { + "namespace": "SMW_NS_CONCEPT", + "page": "Example/P0501/1", + "contents": "{{#concept: [[Modification date::+]] |Modification date}}" + } + ], + "tests": [ + { + "type": "parser", + "about": "#0 canonical representation, not userlang specific", + "subject": "Example/P0501/1", + "namespace": "SMW_NS_CONCEPT", + "assert-output": { + "to-contain": [ + "<p class=\"concept-documenation\">Modification date</p><pre>[[Modification date::+]]</pre>" + ], + "not-contain": [ + "<p class=\"concept-documenation\">Modification date</p><pre>[[Fecha de modificación::+]]</pre>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "es" + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |