diff --git a/tests/unit/e_formTest.php b/tests/unit/e_formTest.php
index 27436b6f2..8b11e42f9 100644
--- a/tests/unit/e_formTest.php
+++ b/tests/unit/e_formTest.php
@@ -1040,4 +1040,70 @@ class e_formTest extends \Codeception\Test\Unit
$this->assertEquals($results[0], $results[1],
"Generated tokens differ. Watch out for performance penalty!");
}
+
+
+ public function testRenderLink()
+ {
+ $tests = array(
+ 0 => array(
+ 'value' => 'Some text',
+ 'parms' => array('link'=>'myurl.php', 'target'=>'blank'),
+ 'expected' => "Some text"
+ ),
+ 1 => array(
+ 'value' => 'Some text',
+ 'parms' => array('link'=>'myurl.php?id=[id]', 'target'=>'modal'),
+ 'expected' => "Some text"
+ ),
+ 2 => array(
+ 'value' => 'Some text',
+ 'parms' => array('link'=>'url_001', 'target'=>'blank'),
+ 'expected' => "Some text"
+ ),
+ 3 => array(
+ 'value' => 'Some text',
+ 'parms' => array('link'=>'myurl.php?country=[country_001]', 'target'=>'dialog'),
+ 'expected' => "Some text"
+ ),
+ 4 => array(
+ 'value' => 'Some text',
+ 'parms' => array('url'=>'rss', 'title'=>'Click Here'),
+ 'expected' => "Some text"
+ )
+
+
+ );
+
+
+
+ try
+ {
+ /** @var e_admin_model $model */
+ $model = $this->make('e_admin_model');
+ }
+ catch (Exception $e)
+ {
+ $this->assertTrue(false, "Couldn't load e_admin_model object");
+ }
+
+ $model->setData($this->_values);
+
+ $model->setData('rss_url', 'rss-sefurl');
+ $model->setData('rss_topicid', '5');
+
+ e107::setRegistry('core/adminUI/currentListModel', $model);
+ e107::setRegistry('core/adminUI/currentPlugin', 'rss_menu');
+
+
+
+ foreach($tests as $t)
+ {
+ $result = $this->_frm->renderLink($t['value'], $t['parms'], 3);
+ $this->assertEquals($t['expected'],$result);
+ }
+
+
+
+ }
+
}