1
0
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:
camer0n
2024-12-19 13:17:32 -08:00
parent 176f8eb325
commit b25e60888b
7 changed files with 132 additions and 38 deletions

View File

@@ -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()
{