function ImportOpmlTest::openImportForm

Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php \Drupal\Tests\aggregator\Functional\ImportOpmlTest::openImportForm()

Opens OPML import form.

1 call to ImportOpmlTest::openImportForm()
ImportOpmlTest::testOpmlImport in core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
Tests the import of an OPML file.

File

core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php, line 44

Class

ImportOpmlTest
Tests OPML import.

Namespace

Drupal\Tests\aggregator\Functional

Code

public function openImportForm() {
    // Enable the help block.
    $this->drupalPlaceBlock('help_block', [
        'region' => 'help',
    ]);
    $this->drupalGet('admin/config/services/aggregator/add/opml');
    $this->assertText('A single OPML document may contain many feeds.', 'Found OPML help text.');
    $this->assertField('files[upload]', 'Found file upload field.');
    $this->assertField('remote', 'Found Remote URL field.');
    $this->assertField('refresh', '', 'Found Refresh field.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.