function EntityRevisionParamConverterTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::setUp()
  3. 10 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 32

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());
}

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