You are here

public function EmbeddedScheduledUpdateTypeTest::testCreateType in Scheduled Updates 8

File

tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTest.php, line 24
Contains \Drupal\Tests\scheduled_updates\EmbeddedScheduledUpdateTypeTest.

Class

EmbeddedScheduledUpdateTypeTest
Test adding an Embedded Scheduled Update Type.

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

public function testCreateType() {
  $type_id = 'foo_type';
  $label = 'Foo Type';
  $clone_fields = [
    'base_fields[title]' => [
      'input_value' => 'title',
      'label' => t('Title'),
    ],
  ];
  $this
    ->createType($label, $type_id, $clone_fields);
}