summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-1003.json
blob: 78d75e0ecb1f7a9da4dd408ee930b222959f6bc6 (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
66
67
68
69
70
71
72
{
	"description": "Test property restriction on annotation and #ask (`wgContLang=en`, `wgLang=en`, `smwgCreateProtectionRight`)",
	"setup": [
		{
			"page": "Example/P1003/1",
			"contents": "[[Has unknown::abc]]"
		},
		{
			"page": "Example/P1003/2",
			"contents": "{{#ask: [[Has unknown::123]] |format=table |limit=10 }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 on annotation attempt",
			"subject": "Example/P1003/1#_ERR504f58c6ccf85a3bb8ccd4562463664a",
			"assert-store": {
				"semantic-data": {
					"strict-mode-valuematch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_ERRP",
						"_ERRT",
						"_SKEY"
					],
					"propertyValues": [
						"Has_unknown#102##",
						"[8,\"smw-datavalue-property-create-restriction\",\"Has unknown\",\"foo\"]"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 on #ask attempt",
			"subject": "Example/P1003/2#_ERR85d779fcd4429a44d5f9dd85e292a953",
			"assert-store": {
				"semantic-data": {
					"strict-mode-valuematch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_ERRP",
						"_ERRT",
						"_SKEY"
					],
					"propertyValues": [
						"Has_unknown#102##",
						"[2,\"smw-datavalue-property-create-restriction\",\"Has unknown\",\"foo\"]"
					]
				}
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgCreateProtectionRight": "foo",
		"smwgPageSpecialProperties": [
			"_MDAT"
		],
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}