function PostgresqlDateSqlTest::providerTestGetDateFormat

Same name in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\PostgresqlDateSqlTest::providerTestGetDateFormat()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/views/query/PostgresqlDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\PostgresqlDateSqlTest::providerTestGetDateFormat()
  3. 11.x 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 66

Class

PostgresqlDateSqlTest
Tests the PostgreSQL-specific date query handler.

Namespace

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

Code

public static 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.