summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0906.json
blob: 2331bbcd6c02adf3b8505c28cfd070af54cb1dd8 (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
{
	"description": "Test `#ask` on category/property hierarchy with circular reference (#1713, `wgContLang=en`, `wgLang=en`, 'smwgEnabledQueryDependencyLinksStore', skip virtuoso)",
	"setup": [
		{
			"namespace": "NS_CATEGORY",
			"page": "CategoryWithCircularHierarchy",
			"contents": "[[Category:CategoryWithCircularHierarchy]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "PropertyWithCircularHierarchy",
			"contents": "[[Subproperty of::PropertyWithCircularHierarchy]]"
		},
		{
			"page": "Example/P0906/1",
			"contents": "[[Category:CategoryWithCircularHierarchy]]"
		},
		{
			"page": "Example/P0906/Q1",
			"contents": "{{#ask: [[Category:CategoryWithCircularHierarchy]] |link=none }}"
		},
		{
			"page": "Example/P0906/2",
			"contents": "[[PropertyWithCircularHierarchy::123]]"
		},
		{
			"page": "Example/P0906/Q2",
			"contents": "{{#ask: [[PropertyWithCircularHierarchy::+]] |link=none }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0",
			"subject": "Example/P0906/Q1",
			"assert-output": {
				"to-contain": [
					"Example/P0906/1"
				]
			}
		},
		{
			"type": "parser",
			"about": "#1",
			"subject": "Example/P0906/Q2",
			"assert-output": {
				"to-contain": [
					"Example/P0906/2"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgEnabledQueryDependencyLinksStore": true,
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"skip-on": {
			"virtuoso": "Virtuoso 6.1 rdfs / subproperty/property hierarchies are currently not implemented"
		},
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}