summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/s-0010.json
blob: 185bd61a93bd4f0453e35027c76f0351aebbb1f9 (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
{
	"description": "Test output from `Special:SearchByProperty` / `_dat` (#1922, `wgContLang=en`, `wgLang=es`, skip-on sqlite)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has date",
			"contents": "[[Has type::Date]]"
		},
		{
			"page": "Example/S0010/1",
			"contents": "[[Has date::1 Jan 1970]]"
		},
		{
			"page": "Example/S0010/2",
			"contents": "[[Has date::2 Dec 2100 12:12:12]]"
		}
	],
	"tests": [
		{
			"type": "special",
			"about": "#0 infolinks on value are content lang. formatted",
			"special-page": {
				"page": "SearchByProperty",
				"query-parameters": "",
				"request-parameters": {
					"property": "Has date"
				}
			},
			"assert-output": {
				"to-contain": [
					"<li>1 ene 1970&#160;&#160;",
					"title=\"Special:SearchByProperty/:Has-20date/1-20January-201970\">+</a>",
					"<li>12:12:12 2 dic 2100&#160;&#160;",
					"title=\"Special:SearchByProperty/:Has-20date/2-20December-202100-2012:12:12\">+</a>"
				],
				"not-contain": [
					"title=\"Special:SearchByProperty/:Has-20date/1-20ene-201970\">+</a>",
					"title=\"Special:SearchByProperty/:Has-20date/12:12:12-202-20dic-202100\">+</a>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "es",
		"wgLanguageCode": "en"
	},
	"meta": {
		"skip-on": {
			"sqlite": "Returns a `database is locked`"
		},
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}