You are here

public function NullNormalizerTest::testNormalize in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/serialization/tests/src/Unit/Normalizer/NullNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\NullNormalizerTest::testNormalize()
  2. 9 core/modules/serialization/tests/src/Unit/Normalizer/NullNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\NullNormalizerTest::testNormalize()

@covers ::normalize

File

core/modules/serialization/tests/src/Unit/Normalizer/NullNormalizerTest.php, line 49

Class

NullNormalizerTest
@coversDefaultClass \Drupal\serialization\Normalizer\NullNormalizer @group serialization

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public function testNormalize() {
  $mock = $this
    ->createMock('Drupal\\Core\\TypedData\\TypedDataInterface');
  $this
    ->assertNull($this->normalizer
    ->normalize($mock));
}