From abb651cc0094ae598ee46fd31d9a875549011022 Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Mon, 23 Jul 2012 00:31:53 -0700 Subject: [PATCH] Get FeedsMapperFileTestCase tests to pass. --- tests/feeds.test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/feeds.test b/tests/feeds.test index b6213fd2..7e53cdef 100644 --- a/tests/feeds.test +++ b/tests/feeds.test @@ -469,7 +469,7 @@ class FeedsWebTestCase extends DrupalWebTestCase { $local_archive = system_retrieve_file($url, $local_archive, FALSE, FILE_EXISTS_REPLACE); } - if (!file_exists($library_dir)) { + if (!file_exists($simplepie_library_dir)) { // Extract the files. $archiver = archiver_get_archiver($local_archive); $archiver->extract($library_dir); @@ -484,7 +484,8 @@ class FeedsWebTestCase extends DrupalWebTestCase { // End single threaded code. // Verify that files were successfully extracted. - $this->assertTrue(file_exists($simplepie_library_dir . '/simplepie.inc'), t('simpletest.inc found in @library_dir.', array('library_dir' => $library_dir))); + $file = $simplepie_library_dir . '/simplepie.inc'; + $this->assertTrue(file_exists($file), t('@file found.', array('@file' => $file))); // Set the simpletest library directory. variable_set('feeds_library_dir', $library_dir); -- GitLab