commit 5577956b99e1cf59f1185eb4caf3127283d66214 Author: Joel Pittet Date: Wed Nov 27 12:55:01 2013 -0800 added tests diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php index 9ba4bf4..4fac932 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/RenderElementTypesTest.php @@ -113,4 +113,26 @@ function testHtmlTag() { $this->assertElements($elements); } + /** + * Tests system #type 'more_link'. + */ + function testMoreLink() { + $elements = array( + // Test more_link anchor tag generation. + array( + 'name' => "#type 'more_link' anchor tag generation", + 'value' => array( + '#type' => 'more_link', + '#href' => 'admin/content', + '#attributes' => array( + 'name' => 'description', + 'class' => array('drupal', 'test'), + ), + ), + 'expected' => '', + ), + ); + $this->assertElements($elements); + } + }