commit c400ee507fb2c8a3cade4b9443514ea8d4824711 Author: Joel Pittet Date: Fri Aug 1 08:59:50 2014 -0700 cleanup debug messages diff --git a/core/lib/Drupal/Core/Template/Attribute.php b/core/lib/Drupal/Core/Template/Attribute.php index f107926..00b3142 100644 --- a/core/lib/Drupal/Core/Template/Attribute.php +++ b/core/lib/Drupal/Core/Template/Attribute.php @@ -131,8 +131,6 @@ public function addClass() { // values or one or more array arguments. $classes = array_merge($classes, (array) $arg); } - // var_dump($classes); - // Merge if there are values, just add them otherwise. if (isset($this->storage['class']) && $this->storage['class'] instanceOf AttributeArray) { // Merge the values passed in from the class value array. @@ -147,7 +145,6 @@ public function addClass() { $this->offsetSet('class', $classes); } - // var_dump($this->storage['class']); return $this; } diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php index b73321e..c09d3e0 100644 --- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php +++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php @@ -65,10 +65,8 @@ public function testAddClasses() { // Add empty Attribute object with no classes. $attribute = new Attribute(); - // Add one class. + // Add one class on empty attribute. $attribute->addClass('banana'); - - var_dump($attribute); $this->assertEquals(new AttributeArray('class', array('banana')), $attribute['class']); // Add one class. @@ -77,22 +75,11 @@ public function testAddClasses() { // Add multiple classes. $attribute->addClass('xx', 'yy'); - $this->assertEquals( - new AttributeArray( - 'class', - array('banana', 'aa', 'xx', 'yy')), - $attribute['class'] - ); + $this->assertEquals(new AttributeArray('class', array('banana', 'aa', 'xx', 'yy')), $attribute['class']); // Add an array of classes. $attribute->addClass(array('red', 'green', 'blue')); - $this->assertEquals( - new AttributeArray( - 'class', - array('banana', 'aa', 'xx', 'yy', 'red', 'green', 'blue') - ), - $attribute['class'] - ); + $this->assertEquals(new AttributeArray('class', array('banana', 'aa', 'xx', 'yy', 'red', 'green', 'blue')), $attribute['class']); } /**