summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0406.json
blob: 218ca8980010c35e1c59d565fba9978b44dc25be (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
{
	"description": "Test in-text annotation for unrestricted template parse using `import-annotation=true` (#1055)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "HasUnrestrictedPage",
			"contents": "[[Has type::Page]]"
		},
		{
			"namespace": "NS_TEMPLATE",
			"page": "CreateAnnotationViaAskTemplate",
			"contents": "<includeonly>[[HasUnrestrictedPage::{{{1}}}]]</includeonly>"
		},
		{
			"namespace": "NS_TEMPLATE",
			"page": "TemplateForUnrestrictedParse",
			"contents": "<includeonly>{{#ask: [[HasUnrestrictedPage::{{{1}}}]]|?HasUnrestrictedPage|link=none|format=template|template=CreateAnnotationViaAskTemplate|import-annotation=true}}</includeonly>"
		},
		{
			"page": "Page-with-annotation",
			"contents": "[[HasUnrestrictedPage::SearchPageWithAnnotation]]"
		},
		{
			"page": "Page-with-template",
			"contents": "{{TemplateForUnrestrictedParse|SearchPageWithAnnotation}}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0",
			"subject": "Page-with-template",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_SKEY",
						"HasUnrestrictedPage",
						"_MDAT",
						"_ASK"
					],
					"propertyValues": [
						"Page-with-annotation"
					]
				}
			}
		}
	],
	"settings": {
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}