commit 5e43ab9bae16cabb1434ddf7af4f93729ed570e5 Author: Joel Pittet Date: Sun Nov 9 14:25:30 2014 -0800 move the assertions to the correct test diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php index fcf8601..e08e6fb 100644 --- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php +++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php @@ -25,6 +25,11 @@ public function testConstructor() { $attribute = new Attribute(array('class' => array('example-class'))); $this->assertTrue(isset($attribute['class'])); $this->assertEquals(new AttributeArray('class', array('example-class')), $attribute['class']); + + // Test adding boolean attributes through the constructor. + $attribute = new Attribute(['selected' => TRUE, 'checked' => FALSE]); + $this->assertTrue($attribute['selected']->value()); + $this->assertFalse($attribute['checked']->value()); } /** @@ -83,11 +88,6 @@ public function testSetAttribute() { $attribute = new Attribute(); $attribute['checked'] = TRUE; $this->assertTrue($attribute['checked']->value()); - - // Test adding boolean attributes through the constructor. - $attribute = new Attribute(['selected' => TRUE, 'checked' => FALSE]); - $this->assertTrue($attribute['selected']->value()); - $this->assertFalse($attribute['checked']->value()); } /**