summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0206.json
blob: 0ebac9fd836682b4d23f27e20896d2a7c98420c9 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
	"description": "Test #show parser on inverse printrequest (#1222, #1223)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "HasWorkManifested",
			"contents": "[[Has type::Page]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "HasWorkManifestedAsText",
			"contents": "[[Has type::Text]]"
		},
		{
			"page": "Example/0206/1",
			"contents": "[[HasWorkManifested::ABC]] + {{#show:{{FULLPAGENAME}}|?-HasWorkManifested|link=none}} + {{#show:{{FULLPAGENAME}}|?HasWorkManifested|link=none}}"
		},
		{
			"page": "Example/0206/2",
			"contents": "[[HasWorkManifested::{{FULLPAGENAME}}]] + {{#show:{{FULLPAGENAME}}|?-HasWorkManifested|link=none}} + {{#show:{{FULLPAGENAME}}|?HasWorkManifested|link=none}}"
		},
		{
			"page": "Example/0206/3",
			"contents": "[[HasWorkManifestedAsText::{{FULLPAGENAME}}]] + {{#show:{{FULLPAGENAME}}|?-HasWorkManifestedAsText|link=none}} + {{#show:{{FULLPAGENAME}}|?HasWorkManifestedAsText|link=none}}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 where inverse is unknown and not displayed",
			"subject": "Example/0206/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY",
						"HasWorkManifested"
					]
				}
			},
			"assert-output": {
				"to-contain": [
					">ABC</a> +  + ABC"
				]
			}
		},
		{
			"type": "parser",
			"about": "#1 inverse pointing to itself",
			"subject": "Example/0206/2",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY",
						"HasWorkManifested"
					]
				}
			},
			"assert-output": {
				"to-contain": [
					">Example/0206/2.* + Example/0206/2 + Example/0206/2"
				]
			}
		},
		{
			"type": "parser",
			"about": "#2, see #1222, inverse is not displayed compared to #1",
			"subject": "Example/0206/3",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_ASK",
						"_MDAT",
						"_SKEY",
						"HasWorkManifestedAsText"
					]
				}
			},
			"assert-output": {
				"to-contain": [
					"<p>Example/0206/3 +  + Example/0206/3"
				]
			}
		}
	],
	"settings": {
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}