mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Closes #5365 Image alt attribute management via Media Manager. Test added.
This commit is contained in:
@@ -60,10 +60,25 @@ class e_parseTest extends \Codeception\Test\Unit
|
||||
);
|
||||
|
||||
$result = $this->tp->toRoute($posted);
|
||||
$this->assertSame($expected, $result);
|
||||
self::assertSame($expected, $result);
|
||||
|
||||
}
|
||||
|
||||
public function testSetGetImageAltCacheFile()
|
||||
{
|
||||
$path = '{e_THEME}basic/screenshot.png';
|
||||
$value = 'Test Alt Text';
|
||||
|
||||
// Call setImageAltCacheFile to generate the cache file
|
||||
$this->tp->setImageAltCacheFile($path, $value);
|
||||
|
||||
|
||||
$retrievedValue = $this->tp->getImageAltCacheFile($path);
|
||||
self::assertSame($value, $retrievedValue, "Retrieved value does not match the expected value");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function testStripBlockTags()
|
||||
{
|
||||
|
Reference in New Issue
Block a user