mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
fix portable infobox render service tests
This commit is contained in:
parent
7fa5668c65
commit
b523ab5083
|
@ -105,7 +105,7 @@ class PortableInfoboxRenderServiceTest extends PHPUnit_Framework_TestCase {
|
|||
],
|
||||
'output' => '<aside class="portable-infobox">
|
||||
<div class="portable-infobox-item item-type-image no-margins">
|
||||
<figure>
|
||||
<figure class="portable-infobox-image-wrapper">
|
||||
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
|
||||
<img src="http://image.jpg" class="portable-infobox-image" alt="image alt" data-image-key="" data-image-name=""/>
|
||||
</a>
|
||||
|
@ -113,7 +113,7 @@ class PortableInfoboxRenderServiceTest extends PHPUnit_Framework_TestCase {
|
|||
</figure>
|
||||
</div>
|
||||
</aside>',
|
||||
'description' => 'Only image for mobile'
|
||||
'description' => 'Only image'
|
||||
],
|
||||
[
|
||||
'input' => [
|
||||
|
@ -129,27 +129,6 @@ class PortableInfoboxRenderServiceTest extends PHPUnit_Framework_TestCase {
|
|||
</aside>',
|
||||
'description' => 'Footer only'
|
||||
],
|
||||
[
|
||||
'input' => [
|
||||
[
|
||||
'type' => 'image',
|
||||
'data' => [
|
||||
'alt' => 'image alt',
|
||||
'url' => 'http://image.jpg'
|
||||
]
|
||||
]
|
||||
],
|
||||
'output' => '<aside class="portable-infobox">
|
||||
<div class="portable-infobox-item item-type-image no-margins">
|
||||
<figure class="portable-infobox-image-wrapper">
|
||||
<a href="http://image.jpg" class="image image-thumbnail" title="image alt">
|
||||
<img src="http://image.jpg" class="portable-infobox-image" alt="image alt" data-image-key="" data-image-name=""/>
|
||||
</a>
|
||||
</figure>
|
||||
</div>
|
||||
</aside>',
|
||||
'description' => 'Only image'
|
||||
],
|
||||
[
|
||||
'input' => [
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue