You are here

protected function BinaryTestCase::getImageFactoryMock in Image Optimize Binaries 8

6 calls to BinaryTestCase::getImageFactoryMock()
AdvDefTest::testDefaultConfig in tests/src/Unit/AdvDefTest.php
Test that the default config of the plugin is set.
AdvDefTest::testOnlyApplyToPNG in tests/src/Unit/AdvDefTest.php
Test that the AdvDef plugin does not run on JPGs
AdvDefTest::testPNGOptimized in tests/src/Unit/AdvDefTest.php
@dataProvider advdefProvider
AdvPngTest::testDefaultConfig in tests/src/Unit/AdvPngTest.php
Test that the default config of the plugin is set.
AdvPngTest::testOnlyApplyToPNG in tests/src/Unit/AdvPngTest.php
Test that the AdvPng plugin does not run on JPGs

... See full list

File

tests/src/Unit/BinaryTestCase.php, line 19

Class

BinaryTestCase
Base test for our binary tests

Namespace

Drupal\Tests\imageapi_optimize_binaries\Unit

Code

protected function getImageFactoryMock() {
  return $this
    ->getMockBuilder('\\Drupal\\Core\\Image\\ImageFactory')
    ->disableOriginalConstructor()
    ->getMock();
}