You are here

public function FeedsRSStoNodesTest::testFeedURLValidation in Feeds 7.2

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

Test validation of feed URLs.

File

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

Class

FeedsRSStoNodesTest
Test aggregating a feed as node items.

Code

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