public function EntityLinkTest::providerTestLink in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 182 - Contains \Drupal\Tests\Core\Entity\EntityLinkTest.
Class
- EntityLinkTest
- @coversDefaultClass \Drupal\Core\Entity\Entity @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;
}