You are here

public function BundleCRUDTest::singleBundleCreationWithOverrides in Entity Construction Kit (ECK) 8

Tests single bundle creation with title overrides.

@test

Throws

\Behat\Mink\Exception\ExpectationException

File

tests/src/Functional/BundleCRUDTest.php, line 31

Class

BundleCRUDTest
Tests eck's bundle creation, update and deletion.

Namespace

Drupal\Tests\eck\Functional

Code

public function singleBundleCreationWithOverrides() {
  $entityTypeInfo = $this
    ->createEntityType();
  $title_overrides = [];
  foreach ($this
    ->getConfigurableBaseFields() as $field) {
    $title_overrides[$field] = $this
      ->randomMachineName(16);
  }
  $this
    ->createEntityBundle($entityTypeInfo['id'], '', $title_overrides);
}