From a960a7f5118137eb8cbf2697387594f6a5bdad31 Mon Sep 17 00:00:00 2001 From: Frank Febbraro <frankfebbraro@gmail.com> Date: Thu, 8 Dec 2011 12:02:43 -0500 Subject: [PATCH] Fixed file enclosure test. Wackyness with curl --- tests/feeds_mapper_file.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/feeds_mapper_file.test b/tests/feeds_mapper_file.test index 3f7664c7..7d9cb0b3 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. -- GitLab