You are here

function ImageAdminStylesUnitTest::getImageCount in Drupal 7

Count the number of images currently create for a style.

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

File

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