1 image.test ImageAdminStylesUnitTest::getImageCount($style)

Count the number of images currently create for a style.

File

core/modules/image/tests/image.test, line 409
Tests for image.module.

Class

ImageAdminStylesUnitTest
Tests creation, deletion, and editing of image styles and effects.

Code

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