Skip to content

Commit 09f4a1c

Browse files
committed
AssignRenderTest: found in an orphaned branch...
...cannot hurt
1 parent a48ffdf commit 09f4a1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/php/library/Director/IcingaConfig/AssignRendererTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ public function testInArrayIsRenderedCorrectly()
8787
);
8888
}
8989

90+
public function testWhetherSlashesAreNotEscaped()
91+
{
92+
$string = 'host.name=' . json_encode('a/b');
93+
94+
$expected = 'assign where host.name == "a/b"';
95+
96+
$this->assertEquals(
97+
$expected,
98+
$this->renderer($string)->renderAssign()
99+
);
100+
}
101+
90102
protected function renderer($string)
91103
{
92104
return AssignRenderer::forFilter(Filter::fromQueryString($string));

0 commit comments

Comments
 (0)