protected function EntityNormalizerTest::setUp in Drupal 8
Overrides UnitTestCase::setUp
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ EntityNormalizerTest.php, line 58
Class
- EntityNormalizerTest
- @coversDefaultClass \Drupal\serialization\Normalizer\EntityNormalizer @group serialization
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
protected function setUp() {
$this->entityFieldManager = $this
->createMock(EntityFieldManagerInterface::class);
$this->entityTypeManager = $this
->createMock(EntityTypeManagerInterface::class);
$this->entityTypeRepository = $this
->createMock(EntityTypeRepositoryInterface::class);
$this->entityNormalizer = new EntityNormalizer($this->entityTypeManager, $this->entityTypeRepository, $this->entityFieldManager);
}