1 image.test ImageStyleFlushTest::getImageCount($style, $wrapper)

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

File

core/modules/image/tests/image.test, line 1681
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'], '/.*/'));
}