Issue #2362205 by Devin Carlson | dawehner: Fixed admin/theme/install|update should point to admin/appearance/update|install.

8.0.x
Alex Pott 2014-11-07 11:39:58 -08:00
parent c6742dd9f0
commit 77f75777ee
2 changed files with 94 additions and 6 deletions

View File

@ -0,0 +1,88 @@
<?php
/**
* @file
* Contains \Drupal\Tests\update\Unit\Menu\UpdateLocalTasksTest.
*/
namespace Drupal\Tests\update\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTest;
/**
* Tests existence of update local tasks.
*
* @group update
*/
class UpdateLocalTasksTest extends LocalTaskIntegrationTest {
protected function setUp() {
$this->directoryList = array('update' => 'core/modules/update');
parent::setUp();
}
/**
* Checks update report tasks.
*
* @dataProvider getUpdateReportRoutes
*/
public function testUpdateReportLocalTasks($route) {
$this->assertLocalTasks($route, array(
0 => array('update.status', 'update.settings', 'update.report_update'),
));
}
/**
* Provides a list of report routes to test.
*/
public function getUpdateReportRoutes() {
return array(
array('update.status'),
array('update.settings'),
array('update.report_update'),
);
}
/**
* Checks update module tasks.
*
* @dataProvider getUpdateModuleRoutes
*/
public function testUpdateModuleLocalTasks($route) {
$this->assertLocalTasks($route, array(
0 => array('update.module_update'),
));
;
}
/**
* Provides a list of module routes to test.
*/
public function getUpdateModuleRoutes() {
return array(
array('update.module_update'),
);
}
/**
* Checks update theme tasks.
*
* @dataProvider getUpdateThemeRoutes
*/
public function testUpdateThemeLocalTasks($route) {
$this->assertLocalTasks($route, array(
0 => array('update.theme_update'),
));
;
}
/**
* Provides a list of theme routes to test.
*/
public function getUpdateThemeRoutes() {
return array(
array('update.theme_update'),
);
}
}

View File

@ -7,20 +7,20 @@ update.settings:
base_route: system.admin_reports
title: Settings
weight: 50
update.report_install:
route_name: update.report_install
update.report_update:
route_name: update.report_update
base_route: system.admin_reports
title: Update
weight: 10
update.module_install:
route_name: update.module_install
update.module_update:
route_name: update.module_update
base_route: system.modules_list
title: Update
weight: 10
update.theme_install:
route_name: update.theme_install
update.theme_update:
route_name: update.theme_update
base_route: system.themes_page
title: Update
weight: 10