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

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

File

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