function FeedAPI_Node_Tests::testFeedAPI_Node_Import_Form in FeedAPI 5
File
- feedapi_node/
tests/ feedapi_node.module.test, line 194
Class
- FeedAPI_Node_Tests
- Class for testing feedapi_node. It also tests FeedAPI and SimplePie parsers.
Code
function testFeedAPI_Node_Import_Form() {
$this
->feedapi_user();
$this
->drupalGet('admin/content/feed/import_opml');
$this
->assertResponse(200, 'The OPML import form is accessible.');
$this
->assertText(t('OPML File'), 'The retrieved page contains the OPML form.');
$this
->drupalPostRequest('admin/content/feed/import_opml', array(), 'Submit');
$this
->assertText(t('Data could not be retrieved, invalid or empty file.'), 'The error message appears when the empty OPML import form is submitted.');
}