function UuidResolverTest::setUp

Same name in other branches
  1. 9 core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::setUp()
  2. 10 core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php \Drupal\Tests\serialization\Unit\EntityResolver\UuidResolverTest::setUp()
  3. 11.x 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.