You are here

protected function BinaryTestCase::getFileSystemMock in Image Optimize Binaries 8

6 calls to BinaryTestCase::getFileSystemMock()
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 25

Class

BinaryTestCase
Base test for our binary tests

Namespace

Drupal\Tests\imageapi_optimize_binaries\Unit

Code

protected function getFileSystemMock() {
  $fileSystemMock = $this
    ->createMock('\\Drupal\\Core\\File\\FileSystemInterface');
  $fileSystemMock
    ->method('realpath')
    ->will($this
    ->returnArgument(0));
  return $fileSystemMock;
}