diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-15 04:34:15 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-15 04:34:15 +0000 |
commit | 66ec59e0f4179e2ab5630bb00bf20ba3fdab5ba6 (patch) | |
tree | 89475c31a147161b27618de2cfac9411a8fb8efa /modules/simpletest/tests/database_test.test | |
parent | 34a78487496accce366a43f3222854172ab8269b (diff) | |
download | brdo-66ec59e0f4179e2ab5630bb00bf20ba3fdab5ba6.tar.gz brdo-66ec59e0f4179e2ab5630bb00bf20ba3fdab5ba6.tar.bz2 |
#664042 by coltrane, effulgentsia: Fixed TableSort order error when no sort set in header
Diffstat (limited to 'modules/simpletest/tests/database_test.test')
-rw-r--r-- | modules/simpletest/tests/database_test.test | 9 |
1 files changed, 9 insertions, 0 deletions
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. + } } /** |