Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imageapi_optimize_binaries
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
imageapi_optimize_binaries
Commits
af7c6887
Commit
af7c6887
authored
2 years ago
by
Project Update Bot
Committed by
Steven Jones
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3287995
by Project Update Bot, e.bogatyrev: Automated Drupal 10 compatibility fixes
parent
da90b4d0
Branches
Branches containing commit
Tags
8.x-1.0-beta1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
imageapi_optimize_binaries.info.yml
+1
-2
1 addition, 2 deletions
imageapi_optimize_binaries.info.yml
tests/src/Unit/BinaryTestCase.php
+2
-6
2 additions, 6 deletions
tests/src/Unit/BinaryTestCase.php
with
3 additions
and
8 deletions
imageapi_optimize_binaries.info.yml
+
1
−
2
View file @
af7c6887
...
...
@@ -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
This diff is collapsed.
Click to expand it.
tests/src/Unit/BinaryTestCase.php
+
2
−
6
View file @
af7c6887
...
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment