You are here

protected function UuidResolverTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php, line 32

Class

UuidResolverTest
@coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver @group serialization

Namespace

Drupal\Tests\serialization\Unit\EntityResolver

Code

protected function setUp() {
  $this->entityRepository = $this
    ->createMock(EntityRepositoryInterface::class);
  $this->resolver = new UuidResolver($this->entityRepository);
}