Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
2e02b4c2
Verified
Commit
2e02b4c2
authored
1 year ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3442295
by mondrake: Change @dataprovider to static in YamlTestBase
(cherry picked from commit
4cdc4313
)
parent
37818989
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!8376
Drupal views: adding more granularity to the ‘use ajax’ functionality
,
!8300
Issue #3443586 View area displays even when parent view has no results.
Pipeline
#154052
passed with warnings
1 year ago
Stage: 🏗️ Build
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#154110
Pipeline: drupal
#154104
Pipeline: drupal
#154100
+7
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
+5
-5
5 additions, 5 deletions
...sts/Drupal/Tests/Component/Serialization/YamlTestBase.php
with
5 additions
and
5 deletions
core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
+
5
−
5
View file @
2e02b4c2
...
...
@@ -14,7 +14,7 @@ abstract class YamlTestBase extends TestCase {
/**
* Some data that should be able to be serialized.
*/
public
function
providerEncodeDecodeTests
()
{
public
static
function
providerEncodeDecodeTests
()
{
return
[
[
'foo'
=>
'bar'
,
...
...
@@ -46,7 +46,7 @@ public function providerEncodeDecodeTests() {
/**
* Some data that should be able to be deserialized.
*/
public
function
providerDecodeTests
()
{
public
static
function
providerDecodeTests
()
{
$data
=
[
// NULL files.
[
''
,
NULL
],
...
...
@@ -74,10 +74,10 @@ public function providerDecodeTests() {
];
// 1.2 Bool values.
foreach
(
$this
->
providerBoolTest
()
as
$test
)
{
foreach
(
static
::
providerBoolTest
()
as
$test
)
{
$data
[]
=
[
'bool: '
.
$test
[
0
],
[
'bool'
=>
$test
[
1
]]];
}
$data
=
array_merge
(
$data
,
$this
->
providerBoolTest
());
$data
=
array_merge
(
$data
,
static
::
providerBoolTest
());
return
$data
;
}
...
...
@@ -85,7 +85,7 @@ public function providerDecodeTests() {
/**
* Tests different boolean serialization and deserialization.
*/
public
function
providerBoolTest
()
{
public
static
function
providerBoolTest
()
{
return
[
[
'true'
,
TRUE
],
[
'TRUE'
,
TRUE
],
...
...
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