VE-1982: Make sourceProvider content more readable and easier to understand

This commit is contained in:
Inez Korczynski 2015-10-20 21:30:07 +00:00
parent f693207998
commit b93c9607a2

View file

@ -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/>',
[ ]
],
];
}