Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Entity / EntityLinkTest.php
index 38e9502e99a3f36b78f9f0b4a88cd1ffdb78d9b2..c606cb0d1b38a7a764d5763948d02c1bc5c09aa5 100644 (file)
@@ -58,6 +58,13 @@ class EntityLinkTest extends UnitTestCase {
    * @covers ::link
    *
    * @dataProvider providerTestLink
+   *
+   * @group legacy
+   *
+   * Note this is only a legacy test because it triggers a call to
+   * \Drupal\Core\Entity\EntityTypeInterface::getLabelCallback() which is mocked
+   * and triggers a deprecation error. Remove when ::getLabelCallback() is
+   * removed.
    */
   public function testLink($entity_label, $link_text, $expected_text, $link_rel = 'canonical', array $link_options = []) {
     $language = new Language(['id' => 'es']);
@@ -120,6 +127,13 @@ class EntityLinkTest extends UnitTestCase {
    * @covers ::toLink
    *
    * @dataProvider providerTestLink
+   *
+   * @group legacy
+   *
+   * Note this is only a legacy test because it triggers a call to
+   * \Drupal\Core\Entity\EntityTypeInterface::getLabelCallback() which is mocked
+   * and triggers a deprecation error. Remove when ::getLabelCallback() is
+   * removed.
    */
   public function testToLink($entity_label, $link_text, $expected_text, $link_rel = 'canonical', array $link_options = []) {
     $language = new Language(['id' => 'es']);