summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0030.json
blob: c64c37ce3fad1d44bf4e048e4f88db21270f6456 (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
{
	"description": "Test `Special:Concepts`",
	"setup": [
		{
			"namespace": "SMW_NS_CONCEPT",
			"page": "S0030/1",
			"contents": "{{#concept: [[ConceptTest::+]] |Concept with no results}}"
		},
		{
			"page": "S0030/2",
			"contents": "{{#ask: [[Concept:S0030/Unknown]] }}"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0",
			"special-page": {
				"page": "Concepts",
				"query-parameters": "",
				"request-parameters": []
			},
			"assert-output": {
				"to-contain": [
					"<a href=\".*Concept:S0030/1\" title=\"Concept:S0030/1\">Concept:S0030/1</a>"
				],
				"not-contain": [
					"Concept:S0030/Unknown"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLanguageCode": "en",
		"smwgPageSpecialProperties": [
			"_MDAT"
		],
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true,
			"SMW_NS_CONCEPT": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}