Skip to content

Commit

Permalink
add imgAttributes to tests, regression of #169 and #168 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Mar 9, 2022
1 parent 67a9f55 commit 7e52bf1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit.default/Areas/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function getCompareDefault(\Pimcore\Model\Asset\Image $asset)
<div class="row">
<div class="col-12">
<div >
' . $asset->getThumbnail('contentImage')->getHtml() . '
' . $asset->getThumbnail('contentImage')->getHtml(['imgAttributes' => ['class' => 'img-fluid']]) . '
</div>
</div>
</div>
Expand All @@ -160,7 +160,7 @@ private function getCompareCaption(\Pimcore\Model\Asset\Image $asset)
<div class="row">
<div class="col-12">
<div >
' . $asset->getThumbnail('contentImage')->getHtml() . '
' . $asset->getThumbnail('contentImage')->getHtml(['imgAttributes' => ['class' => 'img-fluid']]) . '
<span class="caption">caption</span>
</div>
</div>
Expand All @@ -175,7 +175,7 @@ private function getCompareLightBox(\Pimcore\Model\Asset\Image $asset)
<div class="col-12">
<div class="light-box">
<a href="' . $asset->getThumbnail('lightBoxImage')->getPath() . '" class="item">
' . $asset->getThumbnail('contentImage')->getHtml() . '
' . $asset->getThumbnail('contentImage')->getHtml(['imgAttributes' => ['class' => 'img-fluid']]) . '
</a>
</div>
</div>
Expand All @@ -190,7 +190,7 @@ private function getCompareLink(\Pimcore\Model\Asset\Image $asset)
<div class="col-12">
<div >
<a href="/test/test2" target="">
' . $asset->getThumbnail('contentImage')->getHtml() . '
' . $asset->getThumbnail('contentImage')->getHtml(['imgAttributes' => ['class' => 'img-fluid']]) . '
</a>
</div>
</div>
Expand All @@ -204,7 +204,7 @@ private function getCompareWithAdditionalClass(\Pimcore\Model\Asset\Image $asset
<div class="row">
<div class="col-12">
<div >
' . $asset->getThumbnail('contentImage')->getHtml() . '
' . $asset->getThumbnail('contentImage')->getHtml(['imgAttributes' => ['class' => 'img-fluid']]) . '
</div>
</div>
</div>
Expand Down

0 comments on commit 7e52bf1

Please sign in to comment.