Skip to content
Snippets Groups Projects
Commit 0ecf3668 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1658164 by Rob Loach, Berdir: Fixed TableSort Class not found exception...

Issue #1658164 by Rob Loach, Berdir: Fixed TableSort Class not found exception thrown in database_test_theme_tablesort().
parent 11684711
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -79,7 +79,10 @@ function testTableSortQueryFirst() { ...@@ -79,7 +79,10 @@ function testTableSortQueryFirst() {
*/ */
function testTableSortDefaultSort() { function testTableSortDefaultSort() {
$this->drupalGet('database_test/tablesort_default_sort'); $this->drupalGet('database_test/tablesort_default_sort');
// Any PHP errors or notices thrown would trigger a simpletest exception, so
// no additional assertions are needed. // Verify that the table was displayed. Just the header is checked for
// because if there were any fatal errors or exceptions in displaying the
// sorted table, it would not print the table.
$this->assertText(t('Username'));
} }
} }
...@@ -224,7 +224,7 @@ function database_test_theme_tablesort($form, &$form_state) { ...@@ -224,7 +224,7 @@ function database_test_theme_tablesort($form, &$form_state) {
$query = $query $query = $query
->extend('Drupal\Core\Database\Query\PagerSelectExtender') ->extend('Drupal\Core\Database\Query\PagerSelectExtender')
->extend('TableSort'); ->extend('Drupal\Core\Database\Query\TableSortExtender');
$query $query
->fields('u', array('uid', 'name', 'status', 'created', 'access')) ->fields('u', array('uid', 'name', 'status', 'created', 'access'))
->limit(50) ->limit(50)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment