diff --git a/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php b/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php index 23638ae..8494970 100644 --- a/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php +++ b/core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php @@ -15,13 +15,16 @@ /** * Tests the confirm form helper class. * - * @see \Drupal\Core\Form\ConfirmFormHelper + * @coversDefaultClass \Drupal\Core\Form\ConfirmFormHelper * * @group Drupal * @group Form */ class ConfirmFormHelperTest extends UnitTestCase { + /** + * {@inheritdoc} + */ public static function getInfo() { return array( 'name' => 'Confirm form helper test', @@ -31,6 +34,8 @@ public static function getInfo() { } /** + * @covers ::buildCancelLink + * * Tests the cancel link title. */ public function testCancelLinkTitle() { @@ -45,6 +50,8 @@ public function testCancelLinkTitle() { } /** + * @covers ::buildCancelLink + * * Tests a cancel link route. */ public function testCancelLinkRoute() { @@ -60,16 +67,18 @@ public function testCancelLinkRoute() { } /** + * @covers ::buildCancelLink + * * Tests a cancel link route with parameters. */ public function testCancelLinkRouteWithParams() { $cancel_route = array( - 'route_name' => 'foo_bar/{baz}', + 'route_name' => 'foo_bar.baz', 'route_parameters' => array( 'baz' => 'banana', ), 'options' => array( - 'html' => TRUE, + 'absolute' => TRUE, ), ); $form = $this->getMock('Drupal\Core\Form\ConfirmFormInterface'); @@ -83,15 +92,17 @@ public function testCancelLinkRouteWithParams() { } /** + * @covers ::buildCancelLink + * * Tests a cancel link route with a URL object. */ public function testCancelLinkRouteWithUrl() { $cancel_route = new Url( - 'foo_bar/{baz}', array( + 'foo_bar.baz', array( 'baz' => 'banana', ), array( - 'html' => TRUE, + 'absolute' => TRUE, ) ); $form = $this->getMock('Drupal\Core\Form\ConfirmFormInterface'); @@ -105,6 +116,8 @@ public function testCancelLinkRouteWithUrl() { } /** + * @covers ::buildCancelLink + * * Tests an invalid cancel link route. * * @expectedException \UnexpectedValueException @@ -118,6 +131,8 @@ public function testCancelLinkInvalidRoute() { } /** + * @covers ::buildCancelLink + * * Tests a cancel link provided by the destination. */ public function testCancelLinkDestination() {