gplx/mediawiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0437.json

45 lines
1018 B
JSON

{
"description": "Test in-text annotation with preferred property label/`_PPLB` (#1879, `wgContLang=en`, `wgLang=ja`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "P106",
"contents": {
"import-from": "/../Fixtures/P106.txt"
}
},
{
"page": "Example/P0437/1",
"contents": "{{#subobject: |P106=Teacher }}{{#subobject: |P106=Actor }}"
},
{
"page": "Example/P0437/Q.1",
"contents": "{{#ask: [[P106::+]] |?P106 }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 (ja)",
"subject": "Example/P0437/Q.1",
"assert-output": {
"to-contain": [
"data-title=\"プロパティ\" title=\"人物の職業。「専門分野」(Property:P101) も参照\">",
"title=\"Property:P106\">職業</a>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "ja"
},
"meta": {
"skip-on": {
"mysql": "Failed assertions, check implementation of MediaWikiIntegrationTestCase."
},
"version": "2",
"is-incomplete": false,
"debug": false
}
}