diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json new file mode 100644 index 00000000..324ee61e --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json @@ -0,0 +1,40 @@ +{ + "description": "Test output of `Special:WantedProperties` on unapproved property (`wgContLang=en`, `wgLang=en`, `smwgCreateProtectionRight`)", + "setup": [ + { + "page": "Example/S0019/1", + "contents": "[[SomeWantedProperty::123]]" + } + ], + "tests": [ + { + "type": "special", + "about": "#0 restricted property causes unapproved listing", + "special-page": { + "page": "WantedProperties", + "query-parameters": [], + "request-parameters": { + "filter": "unapprove" + } + }, + "assert-output": { + "to-contain": [ + "<li><a .*SomeWantedProperty&action=view\" .*SomeWantedProperty</a> (1 use)</li>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "smwgCreateProtectionRight": "foo" + }, + "meta": { + "skip-on": { + "sqlite": "Returns a `database is locked`" + }, + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |