public function FeedsHTTPCacheTest::testSaveFileException in Feeds 7.2
@covers FeedsHTTPCache::saveFile().
Tests failing to create cache directory.
File
- tests/
FeedsHTTPCacheTest.test, line 529
Class
- FeedsHTTPCacheTest
- @coversDefaultClass FeedsHTTPCache @group feeds
Code
public function testSaveFileException() {
variable_set('feeds_http_file_cache_dir', 'file://non-writeable-dir/feeds');
$cid = static::randomName();
$response = $this
->createHttpResponse();
try {
$this->cache
->saveFile($cid, $response);
} catch (Exception $e) {
}
$this
->assertTrue(isset($e), 'An exception is thrown.');
$this
->assertNoCacheFileExists($cid);
}