function 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\ParamConverterCode
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.