summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0911.json
blob: f46b9c7f6c3afcab6b5b458a3aafa8ca22d08714 (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
{
	"description": "Test `_wpg` empty chain/subquery (AND, OR)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has page",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Q0911/1",
			"contents": "[[Has page::Q0911]]"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0 (OR)",
			"condition": "[[Has page::Q0911]] OR [[Some page.Another page::Foo]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Q0911/1#0##"
				]
			}
		},
		{
			"type": "query",
			"about": "#1 (AND)",
			"condition": "[[Has page::Q0911]] [[Some page.Another page::Foo]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 0
			}
		}
	],
	"settings": {
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}