You are here

public function EntityUrlTest::providerTestToUrl in Zircon Profile 8

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

Provides test data for testUrlInfo().

File

core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php, line 133
Contains \Drupal\Tests\Core\Entity\EntityUrlTest.

Class

EntityUrlTest
@coversDefaultClass \Drupal\Core\Entity\Entity @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestToUrl() {
  return array(
    array(
      'Drupal\\Core\\Entity\\Entity',
      'edit-form',
      'entity.test_entity_type.edit_form',
      NULL,
    ),
    // Specify a langcode.
    array(
      'Drupal\\Core\\Entity\\Entity',
      'edit-form',
      'entity.test_entity_type.edit_form',
      'es',
    ),
    array(
      'Drupal\\Core\\Entity\\Entity',
      'edit-form',
      'entity.test_entity_type.edit_form',
      'en',
    ),
    array(
      'Drupal\\Core\\Config\\Entity\\ConfigEntityBase',
      'edit-form',
      'entity.test_entity_type.edit_form',
      NULL,
    ),
    // Test that overriding the default $rel parameter works.
    array(
      'Drupal\\Core\\Config\\Entity\\ConfigEntityBase',
      FALSE,
      'entity.test_entity_type.edit_form',
      NULL,
    ),
  );
}