You are here

protected function EntityConverterTest::setUp in Zircon Profile 8

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

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php, line 38
Contains \Drupal\Tests\Core\ParamConverter\EntityConverterTest.

Class

EntityConverterTest
@coversDefaultClass \Drupal\Core\ParamConverter\EntityConverter @group ParamConverter @group Entity

Namespace

Drupal\Tests\Core\ParamConverter

Code

protected function setUp() {
  parent::setUp();
  $this->entityManager = $this
    ->getMock('Drupal\\Core\\Entity\\EntityManagerInterface');
  $this->entityConverter = new EntityConverter($this->entityManager);
}