summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0710.json
blob: 32af1799d6f40ded10ffc8b0ba21559e3ae1d8ea (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
{
	"description": "Test `#ask` with `[[Category::Foo]]`",
	"setup": [
		{
			"page": "P0710/0",
			"namespace":"NS_MAIN",
			"contents": "{{#ask: [[Category::Foo]] }}"
		},
		{
			"page": "P0710/1",
			"namespace":"NS_MAIN",
			"contents": "{{#ask: [[Category::Foo||Bar]] }}"
		}
	],
	"tests": [
		{
			"type": "parser",
			"about": "#0",
			"subject": "P0710/0",
			"assert-output": {
				"to-contain": [
					"\"[[Category::Foo]]\" is not recognized as valid category or value annotation."
				]
			},
			"assert-store": {
				"semantic-data": {
					"strictPropertyValueMatch": false,
					"propertyCount": 4,
					"propertyKeys": [
						"_ERRC",
						"_MDAT",
						"_SKEY",
						"_ASK"
					],
					"propertyValues": [
						"P0710/0#0##_ERRc4925219842fff8c0078c42d61051c5e",
						"P0710/0#0##_ERR32617756f0f702a55404d89059af32b8"
					]
				}
			}
		},
		{
			"type": "parser",
			"about": "#1 (with disjunction)",
			"subject": "P0710/1",
			"assert-output": {
				"to-contain": [
					"\"[[Category::Foo||Bar]]\" is not recognized as valid category or value annotation."
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}