public function PrimitiveDataNormalizerTest::testSupportsNormalizationFail in Drupal 8
Same name and namespace in other branches
- 9 core/modules/serialization/tests/src/Unit/Normalizer/PrimitiveDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\PrimitiveDataNormalizerTest::testSupportsNormalizationFail()
- 10 core/modules/serialization/tests/src/Unit/Normalizer/PrimitiveDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\PrimitiveDataNormalizerTest::testSupportsNormalizationFail()
@covers ::supportsNormalization
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ PrimitiveDataNormalizerTest.php, line 43
Class
- PrimitiveDataNormalizerTest
- @coversDefaultClass \Drupal\serialization\Normalizer\PrimitiveDataNormalizer @group serialization
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function testSupportsNormalizationFail() {
// Test that an object not implementing PrimitiveInterface fails.
$this
->assertFalse($this->normalizer
->supportsNormalization(new \stdClass()));
}