mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
VE-1982: Make sourceProvider content more readable and easier to understand
This commit is contained in:
parent
f693207998
commit
b93c9607a2
|
@ -86,12 +86,25 @@ class NodeImageTest extends WikiaBaseTest {
|
|||
|
||||
public function sourceProvider() {
|
||||
return [
|
||||
[ '<image source="img"/>', [ 'img' ] ],
|
||||
[ '<image source="img"><default>{{{img}}}</default><alt source="img" /></image>', [ 'img' ] ],
|
||||
[ '<image source="img"><alt source="alt"/><caption source="cap"/></image>', [ 'img', 'alt', 'cap' ] ],
|
||||
[ '<image source="img"><alt source="alt"><default>{{{def}}}</default></alt><caption source="cap"/></image>',
|
||||
[ 'img', 'alt', 'def', 'cap' ] ],
|
||||
[ '<image/>', [ ] ],
|
||||
[
|
||||
'<image source="img"/>',
|
||||
[ 'img' ]
|
||||
],
|
||||
[
|
||||
'<image source="img"><default>{{{img}}}</default><alt source="img" /></image>',
|
||||
[ 'img' ]
|
||||
],
|
||||
[
|
||||
'<image source="img"><alt source="alt"/><caption source="cap"/></image>',
|
||||
[ 'img', 'alt', 'cap' ]
|
||||
],
|
||||
[
|
||||
'<image source="img"><alt source="alt"><default>{{{def}}}</default></alt><caption source="cap"/></image>',
|
||||
[ 'img', 'alt', 'def', 'cap' ] ],
|
||||
[
|
||||
'<image/>',
|
||||
[ ]
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue