function ImageStyleFlushTest::getImageCount

Count the number of images currently created for a style in a wrapper.

2 calls to ImageStyleFlushTest::getImageCount()
ImageStyleFlushTest::testFlush in drupal-7.x/modules/image/image.test
General test to flush a style.
ImageStyleFlushTest::testFlush in drupal-7.x/modules/image/image.test
General test to flush a style.

Archivo

drupal-7.x/modules/image/image.test, line 1788
Tests for image.module.

Class

ImageStyleFlushTest
Tests flushing of image styles.

Código

function getImageCount($style, $wrapper) {
  return count(file_scan_directory($wrapper . '://styles/' . $style['name'], '/.*/'));
}