You are here

public function NodeTranslation::testContentTranslationForm in Metatag 8

Load the custom route, make sure something is output.

File

tests/src/Functional/NodeTranslation.php, line 72

Class

NodeTranslation
Verify that node translation form works.

Namespace

Drupal\Tests\metatag\Functional

Code

public function testContentTranslationForm() {
  $this
    ->drupalGet('/admin/config/regional/content-language');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Content language');
  $this
    ->drupalPostForm(NULL, [], 'Save configuration');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Settings successfully updated.');
}