diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php index 249b79f..784d715 100644 --- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php +++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php @@ -97,7 +97,6 @@ public function testRemoveAttribute() { 'style' => 'color: pink;', 'title' => 'kitten', 'value' => 'ostrich', - 'checked' => TRUE, ); $attribute = new Attribute($attributes); @@ -119,6 +118,9 @@ public function testRemoveAttribute() { $this->assertEmpty((string) $attribute); // Boolean value. + $attribute = new Attribute(); + $attribute->setAttribute('checked', TRUE); + $this->assertTrue($attribute['checked']->value()); $attribute->removeAttribute('checked'); $this->assertEmpty($attribute['checked']); }