You are here

protected function KernelTransactionTestBase::prepareTransactionLogMessageField in Transaction 8

Adds a log message text field to the transaction entity type.

1 call to KernelTransactionTestBase::prepareTransactionLogMessageField()
KernelTransactionTestBase::setUp in tests/src/Kernel/KernelTransactionTestBase.php

File

tests/src/Kernel/KernelTransactionTestBase.php, line 168

Class

KernelTransactionTestBase
Base class for kernel tests of the Transaction module.

Namespace

Drupal\Tests\transaction\Kernel

Code

protected function prepareTransactionLogMessageField() {

  // Log message field in the transaction entity.
  FieldStorageConfig::create([
    'field_name' => 'field_log_message',
    'type' => 'string',
    'entity_type' => 'transaction',
  ])
    ->save();
}