protected function FeedsHTTPCacheTest::assertCacheFileExists in Feeds 7.2
Asserts that a cache file with a certain ID exists on the file system.
Parameters
string $cid: The cache item ID.
6 calls to FeedsHTTPCacheTest::assertCacheFileExists()
- FeedsHTTPCacheTest::testClear in tests/
FeedsHTTPCacheTest.test - @covers FeedsHTTPCache::clear().
- FeedsHTTPCacheTest::testClearExpired in tests/
FeedsHTTPCacheTest.test - @covers FeedsHTTPCache::clear().
- FeedsHTTPCacheTest::testClearExpiredUsingCacheLifeTime in tests/
FeedsHTTPCacheTest.test - @covers FeedsHTTPCache::clear().
- FeedsHTTPCacheTest::testClearMultiple in tests/
FeedsHTTPCacheTest.test - @covers FeedsHTTPCache::clear().
- FeedsHTTPCacheTest::testClearUsingWildcard in tests/
FeedsHTTPCacheTest.test - @covers FeedsHTTPCache::clear().
File
- tests/
FeedsHTTPCacheTest.test, line 169
Class
- FeedsHTTPCacheTest
- @coversDefaultClass FeedsHTTPCache @group feeds
Code
protected function assertCacheFileExists($cid) {
$message = format_string('Cache file @cid exists.', array(
'@cid' => $cid,
));
$this
->assertTrue(file_exists(static::FEEDS_CACHE_DIR . '/' . $cid), $message);
}