You are here

public function AddFieldScheduledUpdateTypeTest::testAddUpdateFields in Scheduled Updates 8

File

tests/src/FunctionalJavascript/AddFieldScheduledUpdateTypeTest.php, line 43
Contains \Drupal\Tests\scheduled_updates\AddFieldScheduledUpdateTypeTest.

Class

AddFieldScheduledUpdateTypeTest
Test adding an Embedded Scheduled Update Type via Manage Field page.

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

public function testAddUpdateFields() {
  $this
    ->checkAddUpdateField('page', 'title', 'Title');
  $clone_field_options = [
    'default_value_input[_no_form_display]' => 1,
    'default_value_input[promote][value]' => 1,
  ];
  $this
    ->checkAddUpdateField('page', 'promote', 'Promoted to front page', $clone_field_options, TRUE);
}