You are here

public function PostgresqlDateSqlTest::providerTestGetDateFormat in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\PostgresqlDateSqlTest::providerTestGetDateFormat()
  2. 9 core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\PostgresqlDateSqlTest::providerTestGetDateFormat()

Provider for date formatting test.

File

core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php, line 64

Class

PostgresqlDateSqlTest
Tests the PostgreSQL-specific date query handler.

Namespace

Drupal\Tests\views\Unit\Plugin\views\query

Code

public function providerTestGetDateFormat() {
  return [
    [
      'foo.field',
      'Y-y-M-m',
      'YYYY-YY-Mon-MM',
    ],
    [
      'bar.field',
      'n-F D d l',
      'MM-Month Dy DD Day',
    ],
    [
      'baz.bar_field',
      'j/W/H-h i s A',
      'DD/IW/HH24-HH12 MI SS AM',
    ],
  ];
}