protected function EntityBundleFieldTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/EntityBundleFieldTest.php \Drupal\system\Tests\Entity\EntityBundleFieldTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides EntityUnitTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityBundleFieldTest.php, line 41 - Contains \Drupal\system\Tests\Entity\EntityBundleFieldTest.
Class
- EntityBundleFieldTest
- Tests adding a custom bundle field.
Namespace
Drupal\system\Tests\EntityCode
protected function setUp() {
parent::setUp();
$this
->installSchema('user', array(
'users_data',
));
$this
->installSchema('system', array(
'router',
));
$this->moduleHandler = $this->container
->get('module_handler');
$this->database = $this->container
->get('database');
}