You are here

public function SqliteDateSqlTest::testSetTimezoneOffset in Drupal 9

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

Tests setting the database offset.

@covers ::setTimezoneOffset

File

core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php, line 91

Class

SqliteDateSqlTest
Tests the MySQL-specific date query handler.

Namespace

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

Code

public function testSetTimezoneOffset() {
  $database = $this
    ->prophesize(Connection::class);
  $database
    ->query()
    ->shouldNotBeCalled();
  $date_sql = new SqliteDateSql($database
    ->reveal());
  $date_sql
    ->setTimezoneOffset(42);
}