You are here

public function ImportOpmlTest::openImportForm in Zircon Profile 8

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

Opens OPML import form.

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

File

core/modules/aggregator/src/Tests/ImportOpmlTest.php, line 37
Contains \Drupal\aggregator\Tests\ImportOpmlTest.

Class

ImportOpmlTest
Tests OPML import.

Namespace

Drupal\aggregator\Tests

Code

public function openImportForm() {

  // Enable the help block.
  $this
    ->drupalPlaceBlock('help_block', array(
    '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.');
}