You are here

protected function EntityRevisionParamConverterTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php, line 30

Class

EntityRevisionParamConverterTest
@coversDefaultClass \Drupal\Core\ParamConverter\EntityRevisionParamConverter @group entity

Namespace

Drupal\Tests\Core\ParamConverter

Code

protected function setUp() : void {
  parent::setUp();
  $this->converter = new EntityRevisionParamConverter($this
    ->prophesize(EntityTypeManagerInterface::class)
    ->reveal(), $this
    ->prophesize(EntityRepositoryInterface::class)
    ->reveal());
}