function ImageStyleFlushTest::getImageCount in Drupal 7
Count the number of images currently created for a style in a wrapper.
1 call to ImageStyleFlushTest::getImageCount()
- ImageStyleFlushTest::testFlush in modules/
image/ image.test - General test to flush a style.
File
- modules/
image/ image.test, line 1903 - Tests for image.module.
Class
- ImageStyleFlushTest
- Tests flushing of image styles.
Code
function getImageCount($style, $wrapper) {
return count(file_scan_directory($wrapper . '://styles/' . $style['name'], '/.*/'));
}