protected function setUp()
 {
     parent::setUp();
     $admin_user = $this->drupalCreateUser(array('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.
     $cache_directory = _update_manager_cache_directory(TRUE);
     $validArchiveFile = __DIR__ . '/../../tests/update_test_new_module/8.x-1.0/update_test_new_module.tar.gz';
     copy($validArchiveFile, $cache_directory . '/update_test_new_module.tar.gz');
 }
예제 #2
0
 protected function setUp()
 {
     parent::setUp();
     $admin_user = $this->drupalCreateUser(array('administer site configuration', 'administer modules', 'administer themes'));
     $this->drupalLogin($admin_user);
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     $admin_user = $this->drupalCreateUser(array('administer software updates', 'administer site configuration'));
     $this->drupalLogin($admin_user);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
 }