summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0801.json
blob: 0abdab74842c0e82cdc171a7f71cf97650dedf02 (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
{
	"description": "Test `_INST` query (#1004, en)",
	"setup": [
		{
			"namespace": "NS_CATEGORY",
			"page": "Foo",
			"contents": ""
		},
		{
			"page": "Page-with-category",
			"contents": "[[Category:Foo]]"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0 query pages with annotated category",
			"condition": "[[Category:Foo]]",
			"printouts": [
				"_INST"
			],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Page-with-category#0##"
				],
				"datavalues": [
					{
						"property": "_INST",
						"value": "Foo"
					}
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}