function DateTimeIso8601NormalizerTestDrupalDateTime::setTimezone

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

File

core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php, line 282

Class

DateTimeIso8601NormalizerTestDrupalDateTime
Note: Prophecy does not support magic methods. By subclassing and specifying an explicit method, Prophecy works.

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.