You are here

public function ParamConverterManagerTest::providerTestAddConverter 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::providerTestAddConverter()

Provide data for parameter converter manager tests.

Return value

array An array of arrays, each containing the input parameters for providerTestResolvers::testAddConverter().

See also

ParamConverterManagerTest::testAddConverter().

File

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

Class

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

Namespace

Drupal\Tests\Core\ParamConverter

Code

public function providerTestAddConverter() {
  $converters[0]['unsorted'] = array(
    array(
      'name' => 'strawberry',
    ),
    array(
      'name' => 'raspberry',
    ),
    array(
      'name' => 'pear',
    ),
    array(
      'name' => 'peach',
    ),
    array(
      'name' => 'pineapple',
    ),
    array(
      'name' => 'banana',
    ),
    array(
      'name' => 'apple',
    ),
  );
  $converters[0]['sorted'] = array(
    'strawberry',
    'raspberry',
    'pear',
    'peach',
    'pineapple',
    'banana',
    'apple',
  );
  $converters[1]['unsorted'] = array(
    array(
      'name' => 'giraffe',
    ),
    array(
      'name' => 'zebra',
    ),
    array(
      'name' => 'eagle',
    ),
    array(
      'name' => 'ape',
    ),
    array(
      'name' => 'cat',
    ),
    array(
      'name' => 'puppy',
    ),
    array(
      'name' => 'llama',
    ),
  );
  $converters[1]['sorted'] = array(
    'giraffe',
    'zebra',
    'eagle',
    'ape',
    'cat',
    'puppy',
    'llama',
  );
  return $converters;
}