summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0023.json
blob: b1e2a9a2aa190311824687eaf8fc106d4de7eab9 (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
{
	"description": "Test `Special:Browse` output category (`wgContLang=en`, `wgLang=en`)",
	"setup": [
		{
			"page": "Example/S0023/1",
			"contents": "[[Category:S0023]]"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0 (category singular display)",
			"special-page": {
				"page": "Browse",
				"query-parameters": "Example/S0023/1",
				"request-parameters": {
					"output": "legacy"
				}
			},
			"assert-output": {
				"to-contain": [
					"<div class=\"smw-table-cell smwb-cell smwb-prophead\"><a href=.*>Category</a></div>",
					"<div class=\"smw-table-cell smwb-cell smwb-propval\"><span class=\"smwb-value\"><a href=.*>S0023</a></span>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgPageSpecialProperties": [
			"_MDAT"
		],
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}