You are here

public function UcAddressesFeedsTest::importFile in Ubercart Addresses 7

Import a file through the import form. Assumes FeedsFileFetcher in place.

1 call to UcAddressesFeedsTest::importFile()
UcAddressesFeedsTest::test in tests/uc_addresses.feeds.test
Test address creation.

File

tests/uc_addresses.feeds.test, line 178
Test for Feeds integration.

Class

UcAddressesFeedsTest
Test aggregating a feed as address records.

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');
}