-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1300 from SemanticMediaWiki/test
Add test to verify that T49472 is solved
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
68 changes: 68 additions & 0 deletions
68
tests/phpunit/Integration/ByJsonScript/Fixtures/q-1105 named subobject with record.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"description": "_rec / subobject / T49472", | ||
"properties": [ | ||
{ | ||
"name": "Has text", | ||
"contents": "[[Has type::Text]]" | ||
}, | ||
{ | ||
"name": "Has number", | ||
"contents": "[[Has type::Number]]" | ||
}, | ||
{ | ||
"name": "Has record text", | ||
"contents": "[[Has type::Record]] [[Has fields::Has text;Has number]]" | ||
} | ||
], | ||
"subjects": [ | ||
{ | ||
"name": "Example/Q1105/1", | ||
"contents": "{{#subobject: Test|Has text=Foo|Has record text=abc;123}} {{#subobject: Test|Has text=Bar}}" | ||
}, | ||
{ | ||
"name": "Example/Q1105/2", | ||
"contents": "{{#subobject: Test|Has text=Bar}} {{#subobject: Test|Has text=Foo|Has record text=abc;456}}" | ||
} | ||
], | ||
"query-testcases": [ | ||
{ | ||
"about": "#0 declaration order does not matter (oppose to T49472)", | ||
"store" : { | ||
"clear-cache" : true | ||
}, | ||
"condition": "[[Has record text::abc;?]]", | ||
"printouts" : [ "Has record text" ], | ||
"parameters" : { | ||
"limit" : "10" | ||
}, | ||
"queryresult": { | ||
"count": 2, | ||
"results": [ | ||
"Example/Q1105/1#0##Test", | ||
"Example/Q1105/2#0##Test" | ||
], | ||
"datavalues": [ | ||
{ | ||
"property": "Has record text", | ||
"value": "abc;123" | ||
}, | ||
{ | ||
"property": "Has record text", | ||
"value": "abc;456" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"settings": { | ||
"smwStrictComparators": false, | ||
"wgContLang": "en", | ||
"wgLang": "en" | ||
}, | ||
"meta": { | ||
|
||
"version": "0.1", | ||
"is-incomplete": false, | ||
"debug": false | ||
} | ||
} |