From fb33f77198952a30ee70d07e48d9f331e7044902 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 3 Apr 2010 01:28:12 -0500 Subject: [PATCH] Testing - Commented private methods out for tablesort --- tests/main/inc/lib/tablesort.lib.test.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/main/inc/lib/tablesort.lib.test.php b/tests/main/inc/lib/tablesort.lib.test.php index 0f89a8ed9a..5812516144 100755 --- a/tests/main/inc/lib/tablesort.lib.test.php +++ b/tests/main/inc/lib/tablesort.lib.test.php @@ -9,7 +9,7 @@ class TestTablesort extends UnitTestCase{ //public $table; public function TestTablesort(){ - $this->UnitTestCase('All main tablesort function tests'); + $this->UnitTestCase('Tablesort library tests'); } /* public function setUp(){ @@ -22,7 +22,7 @@ class TestTablesort extends UnitTestCase{ */ public function testSortTable(){ - $data= array(a, cd, efd); + $data= array('a', 'cd', 'efd'); $column = 0; $direction = SORT_ASC; $type = SORT_REGULAR; @@ -31,8 +31,9 @@ class TestTablesort extends UnitTestCase{ //var_dump($res); } +/* private method public function testIsNumericColumn(){ - $data=array(aeiou, abcde, acedrf); + $data=array('aeiou', 'abcde', 'acedrf'); $column=0; $res = TableSort::is_numeric_column($data, $column); if(!is_numeric($res)): @@ -41,7 +42,6 @@ class TestTablesort extends UnitTestCase{ $this->assertTrue($res === 1 || $res === 0); //var_dump($res); } - public function testIsDateColumn(){ $data=array(); $column=''; @@ -53,7 +53,6 @@ class TestTablesort extends UnitTestCase{ } //var_dump($res); } - public function testIsImageColumn(){ $data=array(); $column=''; @@ -67,9 +66,9 @@ class TestTablesort extends UnitTestCase{ } //var_dump($res); } - +*/ public function testSortTableConfig(){ - $data=array(a,b,c,d,e,z); + $data=array('a','b','c','d','e','z''); $column = 0; $direction = SORT_ASC; $column_show=null;