summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0303.json
blob: 4dfbc0d099638eccf200a75e7aefabae6ad5192a (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
{
	"description": "Test `#subobject` and `#set` parser on values with spaces (`wgContLang=en`, `wgLang=en`)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has effect",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Example/P0303/1",
			"contents": {
				"import-from": "/../Fixtures/p-0303.txt"
			}
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0 values are trimmed (no leading spaces)",
			"subject": "Example/P0303/1",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"Has_effect",
						"_SKEY",
						"_MDAT",
						"_SOBJ"
					],
					"propertyValues": [
						"Foo",
						"Bar"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 values are trimmed (no leading spaces)",
			"subject": "Example/P0303/1#_4cf77c0a97795d2717d53fa6165a0bf5",
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 2,
					"propertyKeys": [
						"Has_effect",
						"_SKEY"
					],
					"propertyValues": [
						"Foo",
						"Bar"
					]
				}
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}