protected function BinaryTestCase::getShellOperationsMock in Image Optimize Binaries 8
6 calls to BinaryTestCase::getShellOperationsMock()
- 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
 
File
- tests/
src/ Unit/ BinaryTestCase.php, line 32  
Class
- BinaryTestCase
 - Base test for our binary tests
 
Namespace
Drupal\Tests\imageapi_optimize_binaries\UnitCode
protected function getShellOperationsMock() {
  $shellOperationsMock = $this
    ->getMockBuilder('\\Drupal\\imageapi_optimize_binaries\\ImageAPIOptimizeShellOperationsInterface')
    ->setMethods([
    'findExecutablePath',
    'execShellCommand',
    'saveCommandStdoutToFile',
  ])
    ->getMock();
  $shellOperationsMock
    ->method('findExecutablePath')
    ->will($this
    ->returnArgument(0));
  return $shellOperationsMock;
}