Add regression test for bug #11728

refs #11728
This commit is contained in:
Alexander A. Klimov 2016-05-19 13:45:15 +02:00
parent c94228308a
commit 06755ba778
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?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 #11728
*
* Plugin output renderer must preserve the first character after a comma.
*
* @see https://dev.icinga.org/issues/11728
*/
class Bug11728Test extends BaseTestCase
{
public function testWhetherPluginOutputPreservesCharacterAfterComma()
{
$helper = new Zend_View_Helper_PluginOutput();
$this->assertTrue(strpos($helper->pluginOutput('<a href="#">A,BC', true), 'BC') !== false);
}
}