function EntityUrlTest::providerTestToUrlLinkTemplateAddForm
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php \Drupal\Tests\Core\Entity\EntityUrlTest::providerTestToUrlLinkTemplateAddForm()
- 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php \Drupal\Tests\Core\Entity\EntityUrlTest::providerTestToUrlLinkTemplateAddForm()
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php \Drupal\Tests\Core\Entity\EntityUrlTest::providerTestToUrlLinkTemplateAddForm()
Provides data for testToUrlLinkTemplateAddForm().
Return value
array An array of test cases for testToUrlLinkTemplateAddForm().
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityUrlTest.php, line 331
Class
- EntityUrlTest
- Tests URL handling of the <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21EntityBase.php/class/EntityBase/10" title="Defines a base entity class." class="local">\Drupal\Core\Entity\EntityBase</a> class.
Namespace
Drupal\Tests\Core\EntityCode
public static function providerTestToUrlLinkTemplateAddForm() : array {
$test_cases = [];
$route_parameters = [];
$test_cases['no_bundle_key'] = [
static::HAS_NO_BUNDLE_KEY,
NULL,
FALSE,
$route_parameters,
];
$route_parameters = [
'type' => static::ENTITY_TYPE_ID,
];
$test_cases['bundle_entity_type'] = [
static::HAS_BUNDLE_KEY,
'type',
FALSE,
$route_parameters,
];
$test_cases['bundle_key'] = [
static::HAS_BUNDLE_KEY,
NULL,
'type',
$route_parameters,
];
return $test_cases;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.