summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/bootstrap.json
blob: 02e6c956a3ec35884217aa619d7badd24fb2e438 (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
{
	"description": "Example bootstrap test case (see https://youtu.be/7fDKjPFaTaY)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has example",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Example/Bootstrap",
			"contents": "[[Has example::Example123]]"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 (page type annotation)",
			"subject": "Example/Bootstrap",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_SKEY",
						"_MDAT",
						"Has example"
					],
					"propertyValues": [
						"Example123"
					]
				}
			},
			"assert-output": {
				"to-contain": [
					"Example123"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}