public function FeedsContentTypeTest::testRequiredNodeTitleWithCSVParser in Feeds 7.2
Tests if the node title is required when the CSV parser is used.
File
- tests/
feeds_content_type.test, line 78 - Contains FeedsContentTypeTest.
Class
- FeedsContentTypeTest
- Tests for when an importer is attached to a content type.
Code
public function testRequiredNodeTitleWithCSVParser() {
// Set parser to CSV.
$this
->setPlugin('syndication', 'FeedsCSVParser');
$edit = array(
'feeds[FeedsHTTPFetcher][source]' => $GLOBALS['base_url'] . '/' . drupal_get_path('module', 'feeds') . '/tests/feeds/content.csv',
);
$this
->drupalPost('node/add/page', $edit, 'Save');
$this
->assertText('Title field is required.');
}