Commit 0ecf3668 authored by webchick's avatar webchick

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
......@@ -79,7 +79,10 @@ function testTableSortQueryFirst() {
*/
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.
// 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) {
$query = $query
->extend('Drupal\Core\Database\Query\PagerSelectExtender')
->extend('TableSort');
->extend('Drupal\Core\Database\Query\TableSortExtender');
$query
->fields('u', array('uid', 'name', 'status', 'created', 'access'))
->limit(50)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment