class ConfigLocalTasksTest
Same name and namespace in other branches
- 11.x core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest
- 10 core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest
- 9 core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest
Tests existence of config local tasks.
@group config
Hierarchy
- class \Drupal\Tests\config\Unit\Menu\ConfigLocalTasksTest extends \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase
Expanded class hierarchy of ConfigLocalTasksTest
File
-
core/
modules/ config/ tests/ src/ Unit/ Menu/ ConfigLocalTasksTest.php, line 12
Namespace
Drupal\Tests\config\Unit\MenuView source
class ConfigLocalTasksTest extends LocalTaskIntegrationTestBase {
protected function setUp() {
$this->directoryList = [
'config' => 'core/modules/config',
];
parent::setUp();
}
/**
* Tests config local tasks existence.
*
* @dataProvider getConfigAdminRoutes
*/
public function testConfigAdminLocalTasks($route, $expected) {
$this->assertLocalTasks($route, $expected);
}
/**
* Provides a list of routes to test.
*/
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',
],
],
],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.