function 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 45  
Class
- ImportOpmlTest
 - Tests OPML import.
 
Namespace
Drupal\Tests\aggregator\FunctionalCode
public function openImportForm() {
  // Enable the help block.
  $this->drupalPlaceBlock('help_block', [
    'region' => 'help',
  ]);
  $this->drupalGet('admin/config/services/aggregator/add/opml');
  $this->assertSession()
    ->pageTextContains('A single OPML document may contain many feeds.');
  // Ensure that the file upload, remote URL, and refresh fields exist.
  $this->assertSession()
    ->fieldExists('files[upload]');
  $this->assertSession()
    ->fieldExists('remote');
  $this->assertSession()
    ->fieldExists('refresh');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.