You are here

protected function NumericSorterTest::getSorter in Views XML Backend 8

Overrides StringSorterTest::getSorter

File

tests/src/Unit/Sorter/NumericSorterTest.php, line 13

Class

NumericSorterTest
@coversDefaultClass \Drupal\Tests\views_xml_backend\Unit\Sorter\NumericSorterTest @group views_xml_backend

Namespace

Drupal\Tests\views_xml_backend\Unit\Sorter

Code

protected function getSorter($field, $direction) {
  return new NumericSorter($field, $direction);
}