You are here

protected function DateSorterTest::getSorter in Views XML Backend 8

Overrides StringSorterTest::getSorter

File

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

Class

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

Namespace

Drupal\Tests\views_xml_backend\Unit\Sorter

Code

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