summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0501.json
blob: 6eb67ec8b6419c06014447f0dcd31f1e925814f5 (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
{
	"description": "Test `#concept` on predefined property (`wgContLang=en`, `wgLang=es`)",
	"setup": [
		{
			"namespace": "SMW_NS_CONCEPT",
			"page": "Example/P0501/1",
			"contents": "{{#concept: [[Modification date::+]] |Modification date}}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 canonical representation, not userlang specific",
			"subject": "Example/P0501/1",
			"namespace": "SMW_NS_CONCEPT",
			"assert-output": {
				"to-contain": [
					"<p class=\"concept-documenation\">Modification date</p><pre>&#91;&#91;Modification date::+]]</pre>"
				],
				"not-contain": [
					"<p class=\"concept-documenation\">Modification date</p><pre>&#91;&#91;Fecha de modificación::+]]</pre>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "es"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}