You are here

public function ParamConverterManagerTest::providerTestSetRouteParameterConverters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::providerTestSetRouteParameterConverters()

Provides data for testSetRouteParameterConverters().

File

core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php, line 165
Contains \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest.

Class

ParamConverterManagerTest
@coversDefaultClass \Drupal\Core\ParamConverter\ParamConverterManager @group ParamConverter

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function providerTestSetRouteParameterConverters() {
  return array(
    array(
      '/test',
    ),
    array(
      '/test/{id}',
      array(
        'id' => array(),
      ),
      'applied',
    ),
    array(
      '/test/{id}',
      array(
        'id' => array(
          'converter' => 'predefined',
        ),
      ),
      'predefined',
    ),
  );
}