You are here

public function ConfigLocalTasksTest::getConfigAdminRoutes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest::getConfigAdminRoutes()

Provides a list of routes to test.

File

core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php, line 36
Contains \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest.

Class

ConfigLocalTasksTest
Tests existence of config local tasks.

Namespace

Drupal\Tests\config\Unit\Menu

Code

public function getConfigAdminRoutes() {
  return array(
    array(
      'config.sync',
      array(
        array(
          'config.sync',
          'config.import',
          'config.export',
        ),
      ),
    ),
    array(
      'config.import_full',
      array(
        array(
          'config.sync',
          'config.import',
          'config.export',
        ),
        array(
          'config.import_full',
          'config.import_single',
        ),
      ),
    ),
    array(
      'config.import_single',
      array(
        array(
          'config.sync',
          'config.import',
          'config.export',
        ),
        array(
          'config.import_full',
          'config.import_single',
        ),
      ),
    ),
    array(
      'config.export_full',
      array(
        array(
          'config.sync',
          'config.import',
          'config.export',
        ),
        array(
          'config.export_full',
          'config.export_single',
        ),
      ),
    ),
    array(
      'config.export_single',
      array(
        array(
          'config.sync',
          'config.import',
          'config.export',
        ),
        array(
          'config.export_full',
          'config.export_single',
        ),
      ),
    ),
  );
}