Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
animated_gif
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
animated_gif
Commits
4c634e59
Commit
4c634e59
authored
7 months ago
by
Florent Torregrosa
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3456755
by Grimreaper: Fix Core 10.3 deprecations
parent
a88d5926
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!15
Issue #3456755 by Grimreaper: Fix Core 10.3 deprecations
Pipeline
#206905
passed
7 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
animated_gif.info.yml
+1
-1
1 addition, 1 deletion
animated_gif.info.yml
tests/src/Traits/AnimatedGifTestTrait.php
+2
-2
2 additions, 2 deletions
tests/src/Traits/AnimatedGifTestTrait.php
with
3 additions
and
3 deletions
animated_gif.info.yml
+
1
−
1
View file @
4c634e59
name
:
'
Animated
GIF'
type
:
module
description
:
'
Allows
you
to
render
animated
GIFs
without
image
style.'
core_version_requirement
:
^10 || ^11
core_version_requirement
:
^10
.3
|| ^11
package
:
'
Media'
This diff is collapsed.
Click to expand it.
tests/src/Traits/AnimatedGifTestTrait.php
+
2
−
2
View file @
4c634e59
...
...
@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace
Drupal\Tests\animated_gif\Traits
;
use
Drupal\Core\File\File
SystemInterface
;
use
Drupal\Core\File\File
Exists
;
use
Drupal\file\FileInterface
;
/**
...
...
@@ -53,7 +53,7 @@ trait AnimatedGifTestTrait {
// Copy the source file to public directory.
$source
=
$this
->
moduleExtensionList
->
getPath
(
'animated_gif'
);
$source
.
=
'/tests/images/'
.
$fileName
;
$this
->
fileSystem
->
copy
(
$source
,
$fileUri
,
File
SystemInterface
::
EXISTS_REPLACE
);
$this
->
fileSystem
->
copy
(
$source
,
$fileUri
,
File
Exists
::
Replace
);
return
$this
->
entityTypeManager
->
getStorage
(
'file'
)
->
create
([
'filename'
=>
$fileName
,
...
...
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