mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Addition linkwords test.
This commit is contained in:
@@ -1625,7 +1625,7 @@ class users_admin_ui extends e_admin_ui
|
||||
<tr>
|
||||
<td>".USRLAN_128."</td>
|
||||
<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))."
|
||||
</div></td>
|
||||
</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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user