gplx/mediawiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/special-browse-0004.json

49 lines
1.0 KiB
JSON

{
"description": "Test `Special:Browse` output preferred label (`wgContLang=en`, `wgLang=es`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "SomeProperty",
"contents": "[[Has type::Text]] [[Has preferred property label::Label with spaces@es]]"
},
{
"page": "Example/SB0004/1",
"contents": "[[SomeProperty::abc]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 verify preferred label display",
"special-page": {
"page": "Browse",
"query-parameters": "Example/SB0004/1",
"request-parameters": {
"output": "legacy",
"lang": "es"
}
},
"assert-output": {
"to-contain": [
">Label&#160;with&#160;spaces</a>&nbsp;<span title=\"SomeProperty\"><sup>ᵖ</sup>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "es",
"smwgPageSpecialProperties": [
"_MDAT"
],
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}