function AddToAllBundlesConfigActionTest::setUp
Overrides KernelTestBase::setUp
File
-
core/
modules/ field/ tests/ src/ Kernel/ AddToAllBundlesConfigActionTest.php, line 51
Class
- AddToAllBundlesConfigActionTest
- Tests Add To All Bundles Config Action.
Namespace
Drupal\Tests\field\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('entity_test');
EntityTestHelper::createBundle('one');
EntityTestHelper::createBundle('two');
EntityTest::create([
'type' => 'one',
'name' => 'One',
])->save();
EntityTest::create([
'type' => 'two',
'name' => 'Two',
])->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.