1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Fixes #4750 - News image placeholder. Adds another news-grid layout.

This commit is contained in:
Cameron
2022-04-06 12:09:58 -07:00
parent af0a6a5924
commit 02a7e08902
4 changed files with 46 additions and 5 deletions

View File

@@ -2446,6 +2446,21 @@ EXPECTED;
}
// news image scenario with empty value.
$srcPath = '';
$imgParms = array(
'class' => 'news-image',
'alt' => 'placeholder image',
'style' => 'display:block',
'placeholder' => 1,
'legacy' => '{e_IMAGE}newspost_images',
'w' => 400,
'h' => 325
);
$result = $this->tp->toImage($srcPath, $imgParms);
$expected = '<img class="news-image" src="/thumb.php?src=&amp;w=400&amp;h=325" alt="placeholder image" width="400" height="325" style="display:block" />';
$this->assertSame($expected, $result);
}
public function testThumbSrcSet()

View File

@@ -1839,6 +1839,7 @@ class e_parse_shortcodeTest extends \Codeception\Test\Unit
try
{
/** @var e_shortcode $sc */
$sc = $this->make($plug.'_shortcodes');
}
catch (Exception $e)