You are here

protected function RevisionFieldTest::createTestEntity in Multiversion 8

1 call to RevisionFieldTest::createTestEntity()
RevisionFieldTest::testFieldOperations in tests/src/Functional/RevisionFieldTest.php

File

tests/src/Functional/RevisionFieldTest.php, line 83

Class

RevisionFieldTest
Test the creation and operation of the Revision field.

Namespace

Drupal\Tests\multiversion\Functional

Code

protected function createTestEntity(EntityStorageInterface $storage, array $values) {
  switch ($storage
    ->getEntityTypeId()) {
    case 'block_content':
      $values['info'] = $this
        ->randomMachineName();
      break;
  }
  return $storage
    ->create($values);
}