summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1001.json
blob: 7f4135f61f4bcc5687cb1e72fde8e76fc1c17741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
	}
}