public function AdvPngTest::advpngProvider in Image Optimize Binaries 8
Provides config and the associated options that should be sent to advpng for thos options.
Return value
array
File
- tests/
src/ Unit/ AdvPngTest.php, line 85
Class
- AdvPngTest
- Tests AdvPng image optimize plugin.
Namespace
Drupal\Tests\imageapi_optimize_binaries\UnitCode
public function advpngProvider() {
$cases = [];
$cases[] = [
[],
[
'--quiet',
'--recompress',
'-3',
],
];
$cases[] = [
[
'recompress' => FALSE,
],
[
'--quiet',
'-3',
],
];
$cases[] = [
[
'recompress' => FALSE,
'mode' => 1,
],
[
'--quiet',
'-1',
],
];
$cases[] = [
[
'mode' => 0,
],
[
'--quiet',
'--recompress',
'-0',
],
];
$cases[] = [
[
'mode' => 4,
],
[
'--quiet',
'--recompress',
'-4',
],
];
return $cases;
}