summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0033.json
blob: ad4306596e59d810586b56a2bcaef9f11ee2ab93 (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
{
	"description": "Test output from `Special:SearchByProperty` to show all values for a property (#3531)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has vtext",
			"contents": "[[Has type::Text]]"
		},
		{
			"page": "Test/S0033/1",
			"contents": "[[Has vtext::123]] [[Has vtext::456]] [[Has vtext::abc]] [[Has vtext::def]] [[Has vtext::1001]] [[Has vtext::42]]"
		},
		{
			"page": "Test/S0033/2",
			"contents": "[[Has vtext::123]] [[Has vtext::456]] [[Has vtext::abc]] [[Has vtext::def]] [[Has vtext::1001]] [[Has vtext::42]]"
		},
		{
			"page": "Test/S0033/3",
			"contents": "[[Has vtext::123]] [[Has vtext::456]] [[Has vtext::abc]] [[Has vtext::def]] [[Has vtext::1001]] [[Has vtext::42]]"
		},
		{
			"page": "Test/S0033/4",
			"contents": "[[Has vtext::123]] [[Has vtext::456]] [[Has vtext::abc]] [[Has vtext::def]] [[Has vtext::1001]] [[Has vtext::42]]"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0 (find all values for property `Has vtext`)",
			"special-page": {
				"page": "SearchByProperty",
				"query-parameters": "",
				"request-parameters": {
					"limit": 6,
					"property": "Has vtext"
				}
			},
			"assert-output": {
				"to-contain": [
					"<li>1001.*</li>",
					"<li>123.*</li>",
					"<li>42.*</li>",
					"<li>456.*</li>",
					"<li>abc.*</li>",
					"<li>def.*</ul>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLanguageCode": "en"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}