You are here

protected function AutosaveFormTestBase::prepareSetUp in Autosave Form 8

Prepares the test setup.

2 calls to AutosaveFormTestBase::prepareSetUp()
AutosaveFormTestBase::setUp in tests/src/FunctionalJavascript/AutosaveFormTestBase.php
ContentEntityAutosaveFormTestBase::prepareSetUp in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Prepares the test setup.
1 method overrides AutosaveFormTestBase::prepareSetUp()
ContentEntityAutosaveFormTestBase::prepareSetUp in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Prepares the test setup.

File

tests/src/FunctionalJavascript/AutosaveFormTestBase.php, line 55

Class

AutosaveFormTestBase
Basic functionality for autosave form tests.

Namespace

Drupal\Tests\autosave_form\FunctionalJavascript

Code

protected function prepareSetUp() {

  // Adjust the autosave form submission interval.
  \Drupal::configFactory()
    ->getEditable('autosave_form.settings')
    ->set('interval', $this->interval)
    ->save();
  $this->webUser = $this
    ->drupalCreateUser($this
    ->getUserPermissions());
  $this
    ->prepareUser();
  $this
    ->drupalLogin($this->webUser);
}