You are here

public function EntityUrlTest::providerTestToUrlLinkTemplateNoId in Drupal 9

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

Provides data for testToUrlLinkTemplateNoId().

Return value

array An array of test cases for testToUrlLinkTemplateNoId().

File

core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php, line 237

Class

EntityUrlTest
Tests URL handling of the \Drupal\Core\Entity\EntityBase class.

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestToUrlLinkTemplateNoId() {
  $test_cases = [];
  $test_cases['collection'] = [
    'collection',
    'entity.test_entity.collection',
  ];
  $test_cases['add-page'] = [
    'add-page',
    'entity.test_entity.add_page',
  ];
  return $test_cases;
}