function AddToAllBundlesConfigActionTest::setUp

Same name in other branches
  1. 10 core/modules/field/tests/src/Kernel/AddToAllBundlesConfigActionTest.php \Drupal\Tests\field\Kernel\AddToAllBundlesConfigActionTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/field/tests/src/Kernel/AddToAllBundlesConfigActionTest.php, line 35

Class

AddToAllBundlesConfigActionTest
@covers \Drupal\field\Plugin\ConfigAction\AddToAllBundles

Namespace

Drupal\Tests\field\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    NodeType::create([
        'type' => 'one',
        'name' => 'One',
    ])->save();
    NodeType::create([
        'type' => 'two',
        'name' => 'Two',
    ])->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.