diff --git a/tests/feeds_mapper_file.test b/tests/feeds_mapper_file.test index 3f7664c79d630612be6d725e5db5d42c50ead9d0..7d9cb0b392948d07e8021d7b1635fdd9c9620b63 100644 --- a/tests/feeds_mapper_file.test +++ b/tests/feeds_mapper_file.test @@ -25,6 +25,12 @@ class FeedsMapperFileTestCase extends FeedsMapperTestCase { * Basic test loading a single entry CSV file. */ public function test() { + // If this is unset (or FALSE) http_request.inc will use curl, and will generate a 404 + // for this feel url provided by feeds_tests. However, if feeds_tests was enabled in your + // site before running the test, it will work fine. Since it is truly screwy, lets just + // force it to use drupal_http_request for this test case. + variable_set('feeds_never_use_curl', TRUE); + $typename = $this->createContentType(array(), array('files' => 'file')); // 1) Test mapping remote resources to file field.