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:
@@ -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=&w=400&h=325" alt="placeholder image" width="400" height="325" style="display:block" />';
|
||||
$this->assertSame($expected, $result);
|
||||
}
|
||||
|
||||
public function testThumbSrcSet()
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user