Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3253158
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3253158
Commits
c9eb754d
Commit
c9eb754d
authored
10 months ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3443517
by longwave: Change @dataprovider to static in FileCacheFactoryTest
parent
7dbc9947
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php
+13
-17
13 additions, 17 deletions
...Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php
with
13 additions
and
17 deletions
core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php
+
13
−
17
View file @
c9eb754d
...
...
@@ -98,15 +98,9 @@ public function testGetConfigurationOverrides($configuration, $arguments, $class
/**
* Data provider for testGetConfigurationOverrides().
*/
public
function
configurationDataProvider
()
{
public
static
function
configurationDataProvider
()
{
$data
=
[];
// Get a unique FileCache class.
$file_cache
=
$this
->
getMockBuilder
(
FileCache
::
class
)
->
disableOriginalConstructor
()
->
getMock
();
$class
=
get_class
(
$file_cache
);
// Test fallback configuration.
$data
[
'fallback-configuration'
]
=
[
[],
...
...
@@ -116,33 +110,33 @@ public function configurationDataProvider() {
// Test default configuration.
$data
[
'default-configuration'
]
=
[
[
'default'
=>
[
'class'
=>
$
class
]],
[
'default'
=>
[
'class'
=>
CustomFileCache
::
class
]],
[],
$
class
,
CustomFileCache
::
class
,
];
// Test specific per collection setting.
$data
[
'collection-setting'
]
=
[
[
'test_foo_settings'
=>
[
'class'
=>
$
class
]],
[
'test_foo_settings'
=>
[
'class'
=>
CustomFileCache
::
class
]],
[],
$
class
,
CustomFileCache
::
class
,
];
// Test default configuration plus specific per collection setting.
$data
[
'default-plus-collection-setting'
]
=
[
[
'default'
=>
[
'class'
=>
'\stdClass'
],
'test_foo_settings'
=>
[
'class'
=>
$
class
],
'test_foo_settings'
=>
[
'class'
=>
CustomFileCache
::
class
],
],
[],
$
class
,
CustomFileCache
::
class
,
];
// Test default configuration plus class specific override.
$data
[
'default-plus-class-override'
]
=
[
[
'default'
=>
[
'class'
=>
'\stdClass'
]],
[
'class'
=>
$
class
],
$
class
,
[
'class'
=>
CustomFileCache
::
class
],
CustomFileCache
::
class
,
];
// Test default configuration plus class specific override plus specific
...
...
@@ -150,10 +144,10 @@ public function configurationDataProvider() {
$data
[
'default-plus-class-plus-collection-setting'
]
=
[
[
'default'
=>
[
'class'
=>
'\stdClass'
],
'test_foo_settings'
=>
[
'class'
=>
$
class
],
'test_foo_settings'
=>
[
'class'
=>
CustomFileCache
::
class
],
],
[
'class'
=>
'\stdClass'
],
$
class
,
CustomFileCache
::
class
,
];
return
$data
;
...
...
@@ -185,3 +179,5 @@ public function testGetSetPrefix() {
}
}
class
CustomFileCache
extends
FileCache
{}
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