public function EntityLinkTest::providerTestLink in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php \Drupal\Tests\Core\Entity\EntityLinkTest::providerTestLink()
- 9 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\EntityCode
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;
}