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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b1076312
Unverified
Commit
b1076312
authored
Apr 12, 2020
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3126569
by mondrake, longwave: Replace usage of assertAttributeEmpty() that is deprecated
(cherry picked from commit
0bfda930
)
parent
1ad04e7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/locale/tests/src/Unit/LocaleTranslationTest.php
+1
-2
1 addition, 2 deletions
core/modules/locale/tests/src/Unit/LocaleTranslationTest.php
core/tests/Drupal/Tests/Traits/PHPUnit8Warnings.php
+0
-1
0 additions, 1 deletion
core/tests/Drupal/Tests/Traits/PHPUnit8Warnings.php
with
1 addition
and
3 deletions
core/modules/locale/tests/src/Unit/LocaleTranslationTest.php
+
1
−
2
View file @
b1076312
...
@@ -50,8 +50,7 @@ protected function setUp() {
...
@@ -50,8 +50,7 @@ protected function setUp() {
public
function
testDestruct
()
{
public
function
testDestruct
()
{
$translation
=
new
LocaleTranslation
(
$this
->
storage
,
$this
->
cache
,
$this
->
lock
,
$this
->
getConfigFactoryStub
(),
$this
->
languageManager
,
$this
->
requestStack
);
$translation
=
new
LocaleTranslation
(
$this
->
storage
,
$this
->
cache
,
$this
->
lock
,
$this
->
getConfigFactoryStub
(),
$this
->
languageManager
,
$this
->
requestStack
);
// Prove that destruction works without errors when translations are empty.
// Prove that destruction works without errors when translations are empty.
$this
->
assertAttributeEmpty
(
'translations'
,
$translation
);
$this
->
assertNull
(
$translation
->
destruct
());
$translation
->
destruct
();
}
}
}
}
This diff is collapsed.
Click to expand it.
core/tests/Drupal/Tests/Traits/PHPUnit8Warnings.php
+
0
−
1
View file @
b1076312
...
@@ -28,7 +28,6 @@ trait PHPUnit8Warnings {
...
@@ -28,7 +28,6 @@ trait PHPUnit8Warnings {
'getObjectAttribute() is deprecated and will be removed in PHPUnit 9.'
,
'getObjectAttribute() is deprecated and will be removed in PHPUnit 9.'
,
'assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.'
,
'assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.'
,
'assertAttributeInstanceOf() is deprecated and will be removed in PHPUnit 9.'
,
'assertAttributeInstanceOf() is deprecated and will be removed in PHPUnit 9.'
,
'assertAttributeEmpty() is deprecated and will be removed in PHPUnit 9.'
,
'The optional $ignoreCase parameter of assertContains() is deprecated and will be removed in PHPUnit 9.'
,
'The optional $ignoreCase parameter of assertContains() is deprecated and will be removed in PHPUnit 9.'
,
'The optional $ignoreCase parameter of assertNotContains() is deprecated and will be removed in PHPUnit 9.'
,
'The optional $ignoreCase parameter of assertNotContains() is deprecated and will be removed in PHPUnit 9.'
,
];
];
...
...
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