function ContentEntityNormalizerTest::testSupportsNormalization
Same name in other branches
- 9 core/modules/serialization/tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\ContentEntityNormalizerTest::testSupportsNormalization()
- 8.9.x core/modules/serialization/tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\ContentEntityNormalizerTest::testSupportsNormalization()
- 10 core/modules/serialization/tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\ContentEntityNormalizerTest::testSupportsNormalization()
@covers ::supportsNormalization
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ContentEntityNormalizerTest.php, line 59
Class
- ContentEntityNormalizerTest
- @coversDefaultClass \Drupal\serialization\Normalizer\ContentEntityNormalizer @group serialization
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function testSupportsNormalization() : void {
$content_mock = $this->createMock('Drupal\\Core\\Entity\\ContentEntityInterface');
$config_mock = $this->createMock('Drupal\\Core\\Config\\Entity\\ConfigEntityInterface');
$this->assertTrue($this->contentEntityNormalizer
->supportsNormalization($content_mock));
$this->assertFalse($this->contentEntityNormalizer
->supportsNormalization($config_mock));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.