Skip to content
Snippets Groups Projects
Commit af7c6887 authored by Project Update Bot's avatar Project Update Bot Committed by Steven Jones
Browse files

Issue #3287995 by Project Update Bot, e.bogatyrev: Automated Drupal 10 compatibility fixes

parent da90b4d0
Branches
Tags 8.x-1.0-beta1
No related merge requests found
......@@ -2,7 +2,6 @@ name: Image Optimize - Binaries
type: module
package: Image Optimize
description: 'Provide image optimization plugins that use locally installed binaries.'
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
dependencies:
- imageapi_optimize:imageapi_optimize
......@@ -17,9 +17,7 @@ abstract class BinaryTestCase extends UnitTestCase {
protected function getImageFactoryMock() {
return $this->getMockBuilder('\Drupal\Core\Image\ImageFactory')
->disableOriginalConstructor()
->getMock();
return $this->createMock('\Drupal\Core\Image\ImageFactory');
}
protected function getFileSystemMock() {
......@@ -30,9 +28,7 @@ abstract class BinaryTestCase extends UnitTestCase {
}
protected function getShellOperationsMock() {
$shellOperationsMock = $this->getMockBuilder('\Drupal\imageapi_optimize_binaries\ImageAPIOptimizeShellOperationsInterface')
->setMethods(['findExecutablePath', 'execShellCommand', 'saveCommandStdoutToFile'])
->getMock();
$shellOperationsMock = $this->createMock('\Drupal\imageapi_optimize_binaries\ImageAPIOptimizeShellOperationsInterface');
$shellOperationsMock
->method('findExecutablePath')->will($this->returnArgument(0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment