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

47 lines
1010 B
JSON

{
"description": "Test `Special:Browse` output category (`wgContLang=en`, `wgLang=en`)",
"setup": [
{
"page": "Example/SB0006/1",
"contents": "[[Category:SB0006]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 (category singular display)",
"special-page": {
"page": "Browse",
"query-parameters": "Example/SB0006/1",
"request-parameters": {
"output": "legacy"
}
},
"assert-output": {
"to-contain": [
"<div class=\"smw-factbox-property-name\"><a href=.*>Category</a></div>",
"<div class=\"smw-factbox-property-values\"><span class=\"smw-factbox-value\"><a href=.*>SB0006</a></span>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgPageSpecialProperties": [
"_MDAT"
],
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"skip-on": {
"sqlite": "Returns a `database is locked`"
},
"version": "2",
"is-incomplete": false,
"debug": false
}
}