You are here

public function EntityLinkTest::providerTestLink in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php \Drupal\Tests\Core\Entity\EntityLinkTest::providerTestLink()

Provides test data for testLink().

File

core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php, line 115

Class

EntityLinkTest
@coversDefaultClass \Drupal\Core\Entity\EntityBase @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestLink() {
  $data = [];
  $data[] = [
    'some_entity_label',
    'qwerqwer',
    'qwerqwer',
  ];
  $data[] = [
    'some_entity_label',
    NULL,
    'some_entity_label',
  ];
  $data[] = [
    'some_entity_label',
    '0',
    '0',
  ];
  $data[] = [
    'some_entity_label',
    'qwerqwer',
    'qwerqwer',
    'edit-form',
  ];
  $data[] = [
    'some_entity_label',
    'qwerqwer',
    'qwerqwer',
    'edit-form',
  ];
  $data[] = [
    'some_entity_label',
    'qwerqwer',
    'qwerqwer',
    'edit-form',
    [
      'foo' => 'qwer',
    ],
  ];
  return $data;
}