function 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\queryCode
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',
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
