mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Addition linkwords test.
This commit is contained in:
@@ -1625,7 +1625,7 @@ class users_admin_ui extends e_admin_ui
|
|||||||
<tr>
|
<tr>
|
||||||
<td>".USRLAN_128."</td>
|
<td>".USRLAN_128."</td>
|
||||||
<td ><div class='form-inline'>
|
<td ><div class='form-inline'>
|
||||||
".$frm->text('loginname', varset($user_data['user_loginname']), varset($pref['loginname_maxlength'], 30), array('size'=>'xlarge'))."
|
".$frm->text('loginname', varset($user_data['user_loginname']), varset($pref['loginname_maxlength'], 30), array('size'=>'xlarge', 'required'=>1))."
|
||||||
".$frm->checkbox_label(USRLAN_170, 'generateloginname', 1, varset($pref['predefinedLoginName'], false))."
|
".$frm->checkbox_label(USRLAN_170, 'generateloginname', 1, varset($pref['predefinedLoginName'], false))."
|
||||||
</div></td>
|
</div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -101,6 +101,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testToHTMLWordLimit()
|
||||||
|
{
|
||||||
|
$text1 = "<p>here is text link</p>";
|
||||||
|
$text2 = "<p>and another link text</p>";
|
||||||
|
$text3 = "<p>and another paragraph of text with a link</p>";
|
||||||
|
$text4 = "<p>and yet another link to do</p>";
|
||||||
|
|
||||||
|
$this->lw->toHTML($text1, 'BODY');
|
||||||
|
$this->lw->toHTML($text2, 'BODY');
|
||||||
|
$result1 = $this->lw->toHTML($text3, 'BODY');
|
||||||
|
$result2 = $this->lw->toHTML($text4, 'BODY');
|
||||||
|
|
||||||
|
$this->assertSame('<p>and another paragraph of text with a <a class="lw-link lw-3" href="/page-link" >link</a></p>', $result1);
|
||||||
|
$this->assertSame('<p>and yet another link to do</p>', $result2);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
public function testLinksproc()
|
public function testLinksproc()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user