function FeedsRSStoNodesTest::testNonFeedNodeUI in Feeds 8.2
Test that feed elements and links are not found on non-feed nodes.
File
- lib/
Drupal/ feeds/ Tests/ FeedsRSStoNodesTest.php, line 394 - Tests for plugins/FeedsNodeProcessor.inc.
Class
- FeedsRSStoNodesTest
- Test aggregating a feed as node items.
Namespace
Drupal\feeds\TestsCode
function testNonFeedNodeUI() {
// There should not be feed links on an article node.
$non_feed_node = $this
->drupalCreateNode(array(
'type' => 'article',
));
$this
->drupalGet('node/' . $non_feed_node->nid);
$this
->assertNoLinkByHref('node/' . $non_feed_node->nid . '/import');
$this
->assertNoLink('Delete items');
// Navigate to a non-feed node form, there should be no Feed field visible.
$this
->drupalGet('node/add/article');
$this
->assertNoFieldByName('feeds[Drupal\\feeds\\Plugin\\feeds\\fetcher\\FeedsHTTPFetcher][source]');
}