AssignRenderTest: found in an orphaned branch...

...cannot hurt
This commit is contained in:
Thomas Gelf 2018-05-29 13:46:36 +02:00
parent a48ffdfff9
commit 09f4a1c94f
1 changed files with 12 additions and 0 deletions

View File

@ -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));