public function UpdateCoreTest::testLocalActions in Drupal 8
Ensures that the local actions appear.
File
- core/
modules/ update/ tests/ src/ Functional/ UpdateCoreTest.php, line 820
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\Tests\update\FunctionalCode
public function testLocalActions() {
$admin_user = $this
->drupalCreateUser([
'administer site configuration',
'administer modules',
'administer software updates',
'administer themes',
]);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/modules');
$this
->clickLink(t('Install new module'));
$this
->assertUrl('admin/modules/install');
$this
->drupalGet('admin/appearance');
$this
->clickLink(t('Install new theme'));
$this
->assertUrl('admin/theme/install');
$this
->drupalGet('admin/reports/updates');
$this
->clickLink(t('Install new module or theme'));
$this
->assertUrl('admin/reports/updates/install');
}