You are here

public function ConfigLocalTasksTest::getConfigAdminRoutes in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest::getConfigAdminRoutes()
  2. 10 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 31

Class

ConfigLocalTasksTest
Tests existence of config local tasks.

Namespace

Drupal\Tests\config\Unit\Menu

Code

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