public function FeedsWebTestCase::importFile in Feeds 6
Same name and namespace in other branches
- 7.2 tests/feeds.test \FeedsWebTestCase::importFile()
- 7 tests/feeds.test.inc \FeedsWebTestCase::importFile()
Import a file through the import form. Assumes FeedsFileFetcher in place.
12 calls to FeedsWebTestCase::importFile()
- FeedsCSVtoTermsTest::test in tests/
feeds_processor_term.test - Test node creation, refreshing/deleting feeds and feed items.
- FeedsCSVtoUsersTest::test in tests/
feeds_processor_user.test - Test node creation, refreshing/deleting feeds and feed items.
- FeedsExamplesNodeTestCase::test in feeds_import/
feeds_import.test - Run tests.
- FeedsExamplesOPMLTestCase::test in feeds_news/
feeds_news.test - Run tests.
- FeedsExamplesUserTestCase::test in feeds_import/
feeds_import.test - Run tests.
File
- tests/
feeds.test, line 288 - Common functionality for all Feeds tests.
Class
- FeedsWebTestCase
- Test basic Data API functionality.
Code
public function importFile($id, $file) {
$this
->assertTrue(file_exists($file), 'Source file exists');
$edit = array(
'files[feeds]' => $file,
);
$this
->drupalPost('import/' . $id, $edit, 'Import');
}