You are here

protected function EntityConverterTest::setUp in Drupal 9

Same name in this branch
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityConverterTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterTest.php \Drupal\KernelTests\Core\ParamConverter\EntityConverterTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterTest.php, line 32

Class

EntityConverterTest
Tests the entity param converter.

Namespace

Drupal\KernelTests\Core\ParamConverter

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->setUpCurrentUser();
  $this
    ->installEntitySchema('entity_test');

  // Create some testing bundles for 'entity_test' entity type.
  entity_test_create_bundle('foo', 'Foo');
  entity_test_create_bundle('bar', 'Bar');
  entity_test_create_bundle('baz', 'Baz');
}