function ImageStyleFlushTest::getImageCount
Same name in other branches
- 9 core/modules/image/tests/src/Functional/ImageStyleFlushTest.php \Drupal\Tests\image\Functional\ImageStyleFlushTest::getImageCount()
- 8.9.x core/modules/image/tests/src/Functional/ImageStyleFlushTest.php \Drupal\Tests\image\Functional\ImageStyleFlushTest::getImageCount()
- 10 core/modules/image/tests/src/Functional/ImageStyleFlushTest.php \Drupal\Tests\image\Functional\ImageStyleFlushTest::getImageCount()
- 11.x core/modules/image/tests/src/Functional/ImageStyleFlushTest.php \Drupal\Tests\image\Functional\ImageStyleFlushTest::getImageCount()
Count the number of images currently created for a style in a wrapper.
1 call to ImageStyleFlushTest::getImageCount()
- ImageStyleFlushTest::testFlush in modules/
image/ image.test - General test to flush a style.
File
-
modules/
image/ image.test, line 1993
Class
- ImageStyleFlushTest
- Tests flushing of image styles.
Code
function getImageCount($style, $wrapper) {
return count(file_scan_directory($wrapper . '://styles/' . $style['name'], '/.*/'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.