summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0611.json
blob: d879ea63f62ac0771b95e5dc87c7f908e44ac9dc (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
{
	"description": "Test `_wpg` namespace any value queries (#1301, en)",
	"setup": [
		{
			"namespace": "NS_HELP",
			"page": "Example/Q0611/1",
			"contents": "[[Category:Q0611]]"
		},
		{
			"namespace": "NS_HELP",
			"page": "Example/Q0611/2",
			"contents": "[[Category:Q0611]]"
		},
		{
			"namespace": "NS_HELP",
			"page": "Example/Q0611/3",
			"contents": "#REDIRECT [[Example/Q0611/4]]"
		},
		{
			"namespace": "NS_HELP",
			"do-delete": true,
			"page": "Example/Q0611/4",
			"contents": "[[Category:Q0611]]"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0",
			"condition": "[[Help:+]] [[Category:Q0611]]",
			"printouts": [],
			"parameters": {
				"limit": 10
			},
			"assert-queryresult": {
				"count": 2,
				"results": [
					"Example/Q0611/1#12##",
					"Example/Q0611/2#12##"
				]
			},
			"store": {
				"clear-cache": true
			}
		}
	],
	"settings": {
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"NS_CATEGORY": true,
			"SMW_NS_PROPERTY": true,
			"NS_HELP": true
		},
		"wgContLang": "en",
		"wgLang": "en"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}