1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Extra tests for toDB()

This commit is contained in:
Cameron
2019-03-02 10:55:14 -08:00
parent 748d0e88e5
commit 2e7c9818df

View File

@@ -305,12 +305,12 @@ TMP;
'expected' => 'Something & something' 'expected' => 'Something & something'
), ),
15 => array( 15 => array(
'input' => array('news_category', '2'), 'input' => array('news_category', '2', '0'),
'expected' => array('news_category', '2') 'expected' => array('news_category', '2', '0')
), ),
16 => array( 16 => array(
'input' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5), 'input' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5, 'true'=>true, 'false'=>false, 'empty'=>''),
'expected' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5), 'expected' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5, 'true'=>true, 'false'=>false, 'empty'=>''),
), ),
17 => array( 17 => array(
'input' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null), 'input' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null),
@@ -800,7 +800,7 @@ TMP;
foreach($tests as $var) foreach($tests as $var)
{ {
$result = $this->tp->cleanHtml($var['html']); $result = $this->tp->cleanHtml($var['html']);
var_dump($result); // var_dump($result);
} }