mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
AssignRenderTest: found in an orphaned branch...
...cannot hurt
This commit is contained in:
parent
a48ffdfff9
commit
09f4a1c94f
@ -87,6 +87,18 @@ class AssignRendererTest extends BaseTestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testWhetherSlashesAreNotEscaped()
|
||||
{
|
||||
$string = 'host.name=' . json_encode('a/b');
|
||||
|
||||
$expected = 'assign where host.name == "a/b"';
|
||||
|
||||
$this->assertEquals(
|
||||
$expected,
|
||||
$this->renderer($string)->renderAssign()
|
||||
);
|
||||
}
|
||||
|
||||
protected function renderer($string)
|
||||
{
|
||||
return AssignRenderer::forFilter(Filter::fromQueryString($string));
|
||||
|
Loading…
x
Reference in New Issue
Block a user