mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Add regression test for bug #11796
This commit is contained in:
parent
10d2b9c51d
commit
53d8278877
27
modules/monitoring/test/php/regression/Bug11796Test.php
Normal file
27
modules/monitoring/test/php/regression/Bug11796Test.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
/* Icinga Web 2 | (c) 2016 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
namespace Tests\Icinga\Module\Monitoring\Regression;
|
||||||
|
|
||||||
|
require_once __DIR__ . '/../../../application/views/helpers/PluginOutput.php';
|
||||||
|
|
||||||
|
use Icinga\Test\BaseTestCase;
|
||||||
|
use Zend_View_Helper_PluginOutput;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Regression-Test for bug #11796
|
||||||
|
*
|
||||||
|
* Plugin output renderer must not destroy links by adding zero width space characters.
|
||||||
|
*
|
||||||
|
* @see https://dev.icinga.org/issues/11796
|
||||||
|
*/
|
||||||
|
class Bug11796Test extends BaseTestCase
|
||||||
|
{
|
||||||
|
public function testWhetherZeroWidthSpaceDoesntDestroyLinksInPluginOutput()
|
||||||
|
{
|
||||||
|
$helper = new Zend_View_Helper_PluginOutput();
|
||||||
|
$this->assertTrue(
|
||||||
|
strpos($helper->pluginOutput('<a href="http://example.com">EXAMPLE.COM', true), 'example.com') !== false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user