summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0205.json
blob: d69dbf4e987a8a0d58e02603ec6e50ddec07a598 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
	"description": "Test #set/#ask recursive annotation support (#711, #1055, recursive annotation using import-annotation=true via template)",
	"setup": [
		{
			"namespace": "NS_TEMPLATE",
			"page": "AskTemplateToAddPropertyAnnotation",
			"contents": "<includeonly>{{#set:|ByAskTemplateToSetProperty=1234}}</includeonly>"
		},
		{
			"page": "Example/0205",
			"contents": "{{#set:|TestPropertyByAskTemplate=TestValueByAskTemplate}}"
		},
		{
			"page": "Example/0205/Ask/List",
			"contents": "{{#ask:[[TestPropertyByAskTemplate::TestValueByAskTemplate]]|link=none|sep=|format=list|template=AskTemplateToAddPropertyAnnotation|import-annotation=true}}"
		},
		{
			"page": "Example/0205/Ask/Embedded/1",
			"contents": "{{#ask:[[TestPropertyByAskTemplate::TestValueByAskTemplate]]|link=none|sep=|format=embedded|import-annotation=false}}"
		},
		{
			"page": "Example/0205/Ask/Embedded/2",
			"contents": "{{#ask:[[ByAskTemplateToSetProperty::1234]]|link=none|sep=|format=embedded|import-annotation=false}}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0",
			"subject": "Example/0205/Ask/List",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY",
						"ByAskTemplateToSetProperty"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 embbeded with disabled recursive parse support",
			"subject": "Example/0205/Ask/Embedded/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#2 embbeded with disabled recursive parse support",
			"subject": "Example/0205/Ask/Embedded/2",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY"
					]
				}
			}
		}
	],
	"settings": {
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}