summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0445.json
blob: 9b8f5884474461b8ee8fd9ffae83599adaf3d12b (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
{
	"description": "Test in-text annotation for `_ref_rec` type with errors (#..., `wgContLang=en`)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has number reference",
			"contents": "[[Has type::Reference]] [[Has fields::Number;Date]]"
		},
		{
			"page": "Example/P0445/1",
			"contents": "[[Has number reference::Foo;1 Jan 1970]]"
		},
		{
			"page": "Example/P0445/2",
			"contents": "[[Has number reference::123;Foo]]"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 error on number element (type mismatch)",
			"subject": "Example/P0445/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_SKEY",
						"_MDAT",
						"_ERRC"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 error on date element (type mismatch)",
			"subject": "Example/P0445/2",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 3,
					"propertyKeys": [
						"_SKEY",
						"_MDAT",
						"_ERRC"
					]
				}
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}