You are here

function FeedsRSStoNodesTest::testFeedURLValidation in Feeds 6

Same name and namespace in other branches
  1. 7.2 tests/feeds_processor_node.test \FeedsRSStoNodesTest::testFeedURLValidation()

Test validation of feed URLs.

File

tests/feeds_processor_node.test, line 406
Tests for plugins/FeedsNodeProcessor.inc.

Class

FeedsRSStoNodesTest
Test aggregating a feed as node items.

Code

function testFeedURLValidation() {
  $edit['feeds[FeedsHTTPFetcher][source]'] = 'invalid://url';
  $this
    ->drupalPost('node/add/page', $edit, 'Save');
  $this
    ->assertText('The URL invalid://url is invalid.');
}