You are here

protected function NodeAutosaveFormTest::prepareSetUp in Autosave Form 8

Prepares the test setup.

Overrides ContentEntityAutosaveFormTestBase::prepareSetUp

File

tests/src/FunctionalJavascript/ContentEntity/NodeAutosaveFormTest.php, line 38

Class

NodeAutosaveFormTest
Tests the autosave support for entity forms.

Namespace

Drupal\Tests\autosave_form\FunctionalJavascript\ContentEntity

Code

protected function prepareSetUp() {

  // Create the desired node type.
  if (NodeType::load($this->bundle) === NULL) {
    $this
      ->drupalCreateContentType([
      'type' => $this->bundle,
    ]);
  }
  parent::prepareSetUp();
}