Skip to content
Snippets Groups Projects
Unverified Commit b1076312 authored by Alex Pott's avatar Alex Pott
Browse files

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
...@@ -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();
} }
} }
...@@ -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.',
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment