From 66ec59e0f4179e2ab5630bb00bf20ba3fdab5ba6 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 15 Oct 2010 04:34:15 +0000 Subject: #664042 by coltrane, effulgentsia: Fixed TableSort order error when no sort set in header --- modules/simpletest/tests/database_test.test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/simpletest/tests/database_test.test') diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index 62ae06a40..f34afafab 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -2314,6 +2314,15 @@ class DatabaseSelectTableSortDefaultTestCase extends DatabaseTestCase { $this->assertEqual($last->task, $sort['last'], t('Items appear in the correct order sorting by @field @sort.', array('@field' => $sort['field'], '@sort' => $sort['sort']))); } } + + /** + * Confirm that if a sort is not set in a tableselect form there is no error thrown when using the default. + */ + function testTableSortDefaultSort() { + $this->drupalGet('database_test/tablesort_default_sort'); + // Any PHP errors or notices thrown would trigger a simpletest exception, so + // no additional assertions are needed. + } } /** -- cgit v1.2.3