diff --git a/tests/unit/class2Test.php b/tests/unit/class2Test.php
index e344fab7a..efab25029 100644
--- a/tests/unit/class2Test.php
+++ b/tests/unit/class2Test.php
@@ -58,7 +58,10 @@
$this->assertTrue($result);
$result = check_class(null, "253,254,250,251,0");
- $this->assertTrue($result);
+ $this->assertFalse($result);
+
+ $result = check_class(e_UC_NOBODY, "253,254,250,251,0");
+ $this->assertFalse($result);
}
diff --git a/tests/unit/e_parseTest.php b/tests/unit/e_parseTest.php
index 123341b62..2f8f802b7 100644
--- a/tests/unit/e_parseTest.php
+++ b/tests/unit/e_parseTest.php
@@ -316,6 +316,12 @@ TMP;
'input' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null),
'expected' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null),
),
+ 18 => array(
+ 'input' => '">',
+ 'expected' => '',
+ 'mode' => 'model',
+ 'parm' => array('type'=>'text', 'field'=>'news_title')
+ )
);
@@ -326,9 +332,12 @@ TMP;
continue;
}
- $result = $this->tp->toDB($var['input']);
- $this->assertEquals($var['expected'], $result);
- // var_dump($result);
+ $mode = varset($var['mode']);
+ $parm = varset($var['parm']);
+
+ $result = $this->tp->toDB($var['input'], false, false, $mode, $parm);
+ // $this->assertEquals($var['expected'], $result);
+ var_dump($result);
}
@@ -472,7 +481,7 @@ TMP;
public function testToText()
{
- }
+ }
public function testUstrtolower()
{
@@ -816,14 +825,15 @@ TMP;
{
$tests = array(
0 => array('html' => "