You are here

protected function StringSorterTest::getSorter in Views XML Backend 8

2 calls to StringSorterTest::getSorter()
StringSorterTest::testAsc in tests/src/Unit/Sorter/StringSorterTest.php
StringSorterTest::testDesc in tests/src/Unit/Sorter/StringSorterTest.php
2 methods override StringSorterTest::getSorter()
DateSorterTest::getSorter in tests/src/Unit/Sorter/DateSorterTest.php
NumericSorterTest::getSorter in tests/src/Unit/Sorter/NumericSorterTest.php

File

tests/src/Unit/Sorter/StringSorterTest.php, line 61

Class

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

Namespace

Drupal\Tests\views_xml_backend\Unit\Sorter

Code

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