public function UpdateCoreTest::testLocalActions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/Tests/UpdateCoreTest.php \Drupal\update\Tests\UpdateCoreTest::testLocalActions()
Ensures that the local actions appear.
File
- core/
modules/ update/ src/ Tests/ UpdateCoreTest.php, line 349 - Contains \Drupal\update\Tests\UpdateCoreTest.
Class
- UpdateCoreTest
- Tests the Update Manager module through a series of functional tests using mock XML data.
Namespace
Drupal\update\TestsCode
public function testLocalActions() {
$admin_user = $this
->drupalCreateUser(array(
'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');
}