summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0902.json
blob: c45c9e09f2a8aca9ebf93a2f46773f5e319b75c8 (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
60
61
62
63
64
65
{
	"description": "Test #ask on failed queries to produce a `_ERRC` (#1297, en)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "HasPropertyForMove",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Example/P0902/1",
			"contents": "{{#ask:[[Help:]] |format=ul |link=none |headers=show }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 failed NS query",
			"subject": "Example/P0902/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_MDAT",
						"_SKEY",
						"_ASK",
						"_ERRC"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 error record on empty Help:",
			"subject": "Example/P0902/1#_ERRaefa648d070f2edc4b171586eae9b1b0",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_ERRP",
						"_ERRT",
						"_SKEY"
					]
				}
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgPageSpecialProperties": [
			"_MDAT"
		],
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}