function ImageAdminStylesUnitTest::getImageCount

7.x image.test ImageAdminStylesUnitTest::getImageCount($style)

Count the number of images currently create for a style.

2 calls to ImageAdminStylesUnitTest::getImageCount()
ImageAdminStylesUnitTest::testDefaultStyle in drupal-7.x/modules/image/image.test
Test to override, edit, then revert a style.
ImageAdminStylesUnitTest::testStyle in drupal-7.x/modules/image/image.test
General test to add a style, add/remove/edit effects to it, then delete it.

File

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