protected function TimestampItemNormalizerTest::createTimestampItemProphecy in Drupal 10
Same name and namespace in other branches
- 8 core/modules/serialization/tests/src/Unit/Normalizer/TimestampItemNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TimestampItemNormalizerTest::createTimestampItemProphecy()
- 9 core/modules/serialization/tests/src/Unit/Normalizer/TimestampItemNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TimestampItemNormalizerTest::createTimestampItemProphecy()
Creates a TimestampItem prophecy.
Return value
\Prophecy\Prophecy\ObjectProphecy|\Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem
4 calls to TimestampItemNormalizerTest::createTimestampItemProphecy()
- TimestampItemNormalizerTest::testDenormalize in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TimestampItemNormalizerTest.php - @covers ::denormalize
- TimestampItemNormalizerTest::testNormalize in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TimestampItemNormalizerTest.php - @covers ::normalize
- TimestampItemNormalizerTest::testSupportsDenormalization in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TimestampItemNormalizerTest.php - @covers ::supportsDenormalization
- TimestampItemNormalizerTest::testSupportsNormalization in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TimestampItemNormalizerTest.php - @covers ::supportsNormalization
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ TimestampItemNormalizerTest.php, line 174
Class
- TimestampItemNormalizerTest
- Tests that TimestampItem (de)normalization uses Timestamp (de)normalization.
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
protected function createTimestampItemProphecy() {
$timestamp_item = $this
->prophesize(TimestampItem::class);
$timestamp_item
->getParent()
->willReturn(TRUE);
return $timestamp_item;
}