public function SqliteDateSqlTest::testSetFieldTimezoneOffset in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\SqliteDateSqlTest::testSetFieldTimezoneOffset()
- 9 core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php \Drupal\Tests\views\Unit\Plugin\views\query\SqliteDateSqlTest::testSetFieldTimezoneOffset()
Tests timezone offset formatting.
@covers ::setFieldTimezoneOffset
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ views/ query/ SqliteDateSqlTest.php, line 78
Class
- SqliteDateSqlTest
- Tests the MySQL-specific date query handler.
Namespace
Drupal\Tests\views\Unit\Plugin\views\queryCode
public function testSetFieldTimezoneOffset() {
$date_sql = new SqliteDateSql($this->database);
$field = 'foobar.field';
$date_sql
->setFieldTimezoneOffset($field, 42);
$this
->assertEquals("(foobar.field + 42)", $field);
}