function SqliteDateSqlTest::testSetTimezoneOffset
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\SqliteDateSqlTest::testSetTimezoneOffset()
- 8.9.x core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\SqliteDateSqlTest::testSetTimezoneOffset()
- 10 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 95
Class
- SqliteDateSqlTest
- Tests the MySQL-specific date query handler.
Namespace
Drupal\Tests\views\Unit\Plugin\views\queryCode
public function testSetTimezoneOffset() : void {
$database = $this->prophesize(Connection::class);
$database->query()
->shouldNotBeCalled();
$date_sql = new SqliteDateSql($database->reveal());
$date_sql->setTimezoneOffset(42);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.