summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json97
1 files changed, 97 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json
new file mode 100644
index 00000000..7f4135f6
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json
@@ -0,0 +1,97 @@
+{
+ "description": "Test property page with parameters (#2479, `wgContLang=en`, `wgLang=en`)",
+ "setup": [
+ {
+ "namespace": "SMW_NS_PROPERTY",
+ "page": "Has page test",
+ "contents": "[[Has type::Page]]"
+ },
+ {
+ "page": "Example/P1001/1",
+ "contents": "[[Has page test::One]]"
+ },
+ {
+ "page": "Example/P1001/2",
+ "contents": "[[Has page test::Two]]"
+ },
+ {
+ "page": "Example/P1001/3",
+ "contents": "[[Has page test::Foo]]"
+ }
+ ],
+ "tests": [
+ {
+ "type": "parser",
+ "about": "#0",
+ "namespace": "SMW_NS_PROPERTY",
+ "subject": "Has page test",
+ "assert-output": {
+ "onPageView": {
+ "parameters": {
+ "limit": "1",
+ "offset": "1"
+ }
+ },
+ "to-contain": [
+ "Has_page_test&limit=1&offset=0",
+ "title=\"Example/P1001/2\""
+ ]
+ }
+ },
+ {
+ "type": "parser",
+ "about": "#1 (see issue #2479)",
+ "namespace": "SMW_NS_PROPERTY",
+ "subject": "Has page test",
+ "assert-output": {
+ "onPageView": {
+ "parameters": {
+ "limit": "1foo",
+ "offset": "1"
+ }
+ },
+ "to-contain": [
+ "Has_page_test&limit=1&offset=0",
+ "title=\"Example/P1001/2\""
+ ]
+ }
+ },
+ {
+ "type": "parser",
+ "about": "#2 (use a filter, #2878)",
+ "namespace": "SMW_NS_PROPERTY",
+ "subject": "Has page test",
+ "assert-output": {
+ "onPageView": {
+ "parameters": {
+ "filter": "Foo"
+ }
+ },
+ "to-contain": [
+ "=&filter=Foo",
+ "title=\"Example/P1001/3\""
+ ],
+ "not-contain": [
+ "Example/P1001/1",
+ "Example/P1001/2"
+ ]
+ }
+ }
+ ],
+ "settings": {
+ "wgContLang": "en",
+ "wgLang": "en",
+ "smwgPageSpecialProperties": [
+ "_MDAT"
+ ],
+ "smwgNamespacesWithSemanticLinks": {
+ "NS_MAIN": true,
+ "SMW_NS_PROPERTY": true
+ }
+ },
+ "meta": {
+ "version": "2",
+ "is-incomplete": false,
+ "debug": false
+ }
+}