summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0019.json
blob: 324ee61e99204bd46fc7413c56afec84a836b103 (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
{
	"description": "Test output of `Special:WantedProperties` on unapproved property (`wgContLang=en`, `wgLang=en`, `smwgCreateProtectionRight`)",
	"setup": [
		{
			"page": "Example/S0019/1",
			"contents": "[[SomeWantedProperty::123]]"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0 restricted property causes unapproved listing",
			"special-page": {
				"page": "WantedProperties",
				"query-parameters": [],
				"request-parameters": {
					"filter": "unapprove"
				}
			},
			"assert-output": {
				"to-contain": [
					"<li><a .*SomeWantedProperty&amp;action=view\" .*SomeWantedProperty</a> (1 use)</li>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgCreateProtectionRight": "foo"
	},
	"meta": {
		"skip-on": {
			"sqlite": "Returns a `database is locked`"
		},
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}