mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-21 07:09:43 -05:00
26 lines
539 B
PHP
26 lines
539 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Tests\Icinga\Module\Businessprocess\Html;
|
||
|
|
|
||
|
|
use Icinga\Module\Businessprocess\Html\Text;
|
||
|
|
use Icinga\Module\Businessprocess\Test\BaseTestCase;
|
||
|
|
|
||
|
|
class TextTest extends BaseTestCase
|
||
|
|
{
|
||
|
|
public function testTextIsReturnedAsGiven()
|
||
|
|
{
|
||
|
|
$this->assertEquals(
|
||
|
|
'A & O',
|
||
|
|
Text::create('A & O')->getText()
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function testTextIsEscapedWhenRendered()
|
||
|
|
{
|
||
|
|
$this->assertEquals(
|
||
|
|
'A & O',
|
||
|
|
Text::create('A & O')->render()
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|