public function ImportOpmlTest::openImportForm in Drupal 9
Same name and namespace in other branches
- 8 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\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');
}