function DateTimeNormalizerTestDrupalDateTime::setTimezone

Same name in other branches
  1. 9 core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\DateTimeNormalizerTestDrupalDateTime::setTimezone()
  2. 8.9.x core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\DateTimeNormalizerTestDrupalDateTime::setTimezone()
  3. 11.x core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\DateTimeNormalizerTestDrupalDateTime::setTimezone()

File

core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php, line 193

Class

DateTimeNormalizerTestDrupalDateTime
Provides a test class for testing DrupalDateTime.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function setTimezone(\DateTimeZone $timezone) {
    parent::setTimezone($timezone);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.