public function AdvPngTest::testDefaultConfig in Image Optimize Binaries 8
Test that the default config of the plugin is set.
File
- tests/
src/ Unit/ AdvPngTest.php, line 17
Class
- AdvPngTest
- Tests AdvPng image optimize plugin.
Namespace
Drupal\Tests\imageapi_optimize_binaries\UnitCode
public function testDefaultConfig() {
$config = [];
$loggerMock = $this
->getLoggerMock();
$imageFactoryMock = $this
->getImageFactoryMock();
$fileSystemMock = $this
->getFileSystemMock();
$shellOperationsMock = $this
->getShellOperationsMock();
$advpng = new AdvPng($config, 'advpng', [], $loggerMock, $imageFactoryMock, $fileSystemMock, $shellOperationsMock);
$this
->assertArrayHasKey('recompress', $advpng
->defaultConfiguration());
$this
->assertArrayHasKey('mode', $advpng
->defaultConfiguration());
}