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