You are here

protected function FeedsMapperFileTestCase::requireSimplePie in Feeds 7.2

Checks if SimplePie is available and eventually downloads it.

1 call to FeedsMapperFileTestCase::requireSimplePie()
FeedsMapperFileTestCase::test in tests/feeds_mapper_file.test
Basic test loading a single entry CSV file.

File

tests/feeds_mapper_file.test, line 913
Contains FeedsMapperFileTestCase.

Class

FeedsMapperFileTestCase
Test case for Filefield mapper mappers/filefield.inc.

Code

protected function requireSimplePie() {
  if (!feeds_simplepie_exists()) {
    $this
      ->downloadExtractSimplePie('1.3');
    $this
      ->assertTrue(feeds_simplepie_exists());

    // Reset all the caches!
    $this
      ->resetAll();
  }
}