summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0504.json
blob: a80aa705df323ffcc7827f469992c69fa9f26ac7 (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
{
	"description": "Test Equivalent URI (`__spu`)",
	"setup": [
		{
			"namespace": "NS_MAIN",
			"page": "Test:P0504/1",
			"contents": "[[Equivalent URI::http://www.wikidata.org/entity/Q20728]]"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#3601, Equivalent URI property must not be declarative, (i. e., it can be used on subject pages, as well as property and category pages)",
			"subject": "Test:P0504/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_URI",
						"_MDAT",
						"_SKEY"
					],
					"propertyValues": [
						"http://www.wikidata.org/entity/Q20728"
					]
				}
			},
			"assert-output": {
				"not-contain": [
					"is a declarative property"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}