You are here

public function PathautoSettingsFormWebTest::testDefaultFormValues in Pathauto 8

Test if the default values are shown correctly in the form.

File

tests/src/Functional/PathautoSettingsFormWebTest.php, line 115

Class

PathautoSettingsFormWebTest
Tests pathauto settings form.

Namespace

Drupal\Tests\pathauto\Functional

Code

public function testDefaultFormValues() {
  $this
    ->drupalGet('/admin/config/search/path/settings');
  $this
    ->assertNoFieldChecked('edit-verbose');
  $this
    ->assertField('edit-separator', $this->defaultFormValues['separator']);
  $this
    ->assertFieldChecked('edit-case');
  $this
    ->assertField('edit-max-length', $this->defaultFormValues['max_length']);
  $this
    ->assertField('edit-max-component-length', $this->defaultFormValues['max_component_length']);
  $this
    ->assertFieldChecked('edit-update-action-2');
  $this
    ->assertFieldChecked('edit-transliterate');
  $this
    ->assertNoFieldChecked('edit-reduce-ascii');
  $this
    ->assertField('edit-ignore-words', $this->defaultFormValues['ignore_words']);
}