update
This commit is contained in:
@@ -23,7 +23,11 @@ class FileTransferAuthorizeFormTest extends UpdateTestBase {
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$admin_user = $this->drupalCreateUser(['administer modules', 'administer software updates', 'administer site configuration']);
|
||||
$admin_user = $this->drupalCreateUser([
|
||||
'administer modules',
|
||||
'administer software updates',
|
||||
'administer site configuration',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
|
||||
// Create a local cache so the module is not downloaded from drupal.org.
|
||||
|
||||
@@ -507,7 +507,10 @@ class UpdateContribTest extends UpdateTestBase {
|
||||
*/
|
||||
public function testHookUpdateStatusAlter() {
|
||||
$update_test_config = $this->config('update_test.settings');
|
||||
$update_admin_user = $this->drupalCreateUser(['administer site configuration', 'administer software updates']);
|
||||
$update_admin_user = $this->drupalCreateUser([
|
||||
'administer site configuration',
|
||||
'administer software updates',
|
||||
]);
|
||||
$this->drupalLogin($update_admin_user);
|
||||
|
||||
$system_info = [
|
||||
|
||||
@@ -40,7 +40,11 @@ class UpdateCoreTest extends UpdateTestBase {
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$admin_user = $this->drupalCreateUser(['administer site configuration', 'administer modules', 'administer themes']);
|
||||
$admin_user = $this->drupalCreateUser([
|
||||
'administer site configuration',
|
||||
'administer modules',
|
||||
'administer themes',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
$this->drupalPlaceBlock('local_actions_block');
|
||||
}
|
||||
@@ -814,7 +818,12 @@ class UpdateCoreTest extends UpdateTestBase {
|
||||
* Ensures that the local actions appear.
|
||||
*/
|
||||
public function testLocalActions() {
|
||||
$admin_user = $this->drupalCreateUser(['administer site configuration', 'administer modules', 'administer software updates', 'administer themes']);
|
||||
$admin_user = $this->drupalCreateUser([
|
||||
'administer site configuration',
|
||||
'administer modules',
|
||||
'administer software updates',
|
||||
'administer themes',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
|
||||
$this->drupalGet('admin/modules');
|
||||
|
||||
@@ -32,7 +32,11 @@ class UpdateUploadTest extends UpdateTestBase {
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$admin_user = $this->drupalCreateUser(['administer modules', 'administer software updates', 'administer site configuration']);
|
||||
$admin_user = $this->drupalCreateUser([
|
||||
'administer modules',
|
||||
'administer software updates',
|
||||
'administer site configuration',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
}
|
||||
|
||||
@@ -88,11 +92,11 @@ class UpdateUploadTest extends UpdateTestBase {
|
||||
$this->assertFileExists($installedInfoFilePath);
|
||||
// Ensure the links are relative to the site root and not
|
||||
// core/authorize.php.
|
||||
$this->assertLink(t('Install another module'));
|
||||
$this->assertSession()->linkExists(t('Install another module'));
|
||||
$this->assertLinkByHref(Url::fromRoute('update.module_install')->toString());
|
||||
$this->assertLink(t('Enable newly added modules'));
|
||||
$this->assertSession()->linkExists(t('Enable newly added modules'));
|
||||
$this->assertLinkByHref(Url::fromRoute('system.modules_list')->toString());
|
||||
$this->assertLink(t('Administration pages'));
|
||||
$this->assertSession()->linkExists(t('Administration pages'));
|
||||
$this->assertLinkByHref(Url::fromRoute('system.admin')->toString());
|
||||
// Ensure we can reach the "Install another module" link.
|
||||
$this->clickLink(t('Install another module'));
|
||||
|
||||
Reference in New Issue
Block a user