function FeedsRSStoNodesTest::testFeedURLValidation in Feeds 8.2
Test validation of feed URLs.
File
- lib/Drupal/ feeds/ Tests/ FeedsRSStoNodesTest.php, line 363 
- Tests for plugins/FeedsNodeProcessor.inc.
Class
- FeedsRSStoNodesTest
- Test aggregating a feed as node items.
Namespace
Drupal\feeds\TestsCode
function testFeedURLValidation() {
  $edit = array(
    'feeds[Drupal\\feeds\\Plugin\\feeds\\fetcher\\FeedsHTTPFetcher][source]' => 'invalid://url',
  );
  $this
    ->drupalPost('node/add/page', $edit, 'Save and publish');
  $this
    ->assertText('The URL invalid://url is invalid.');
}