Category label is broken on the board if there's a url in the description

This commit is contained in:
Frederic Guillot
2016-02-05 21:24:22 -05:00
parent 1bd96e8735
commit ffb8494fec
3 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class UrlHelperTest extends Base
{
$h = new Url($this->container);
$this->assertEquals(
'<a href="?controller=a&amp;action=b&amp;d=e&amp;plugin=something" class="f" title="g" target="_blank">label</a>',
'<a href="?controller=a&amp;action=b&amp;d=e&amp;plugin=something" class="f" title=\'g\' target="_blank">label</a>',
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
);
}
@@ -24,7 +24,7 @@ class UrlHelperTest extends Base
$h = new Url($this->container);
$this->assertEquals(
'<a href="myplugin/something/e" class="f" title="g" target="_blank">label</a>',
'<a href="myplugin/something/e" class="f" title=\'g\' target="_blank">label</a>',
$h->link('label', 'a', 'b', array('d' => 'e', 'plugin' => 'something'), false, 'f', 'g', true)
);
}
@@ -33,7 +33,7 @@ class UrlHelperTest extends Base
{
$h = new Url($this->container);
$this->assertEquals(
'<a href="?controller=a&amp;action=b&amp;d=e" class="f" title="g" target="_blank">label</a>',
'<a href="?controller=a&amp;action=b&amp;d=e" class="f" title=\'g\' target="_blank">label</a>',
$h->link('label', 'a', 'b', array('d' => 'e'), false, 'f', 'g', true)
);
}