protected function setUp(): void
{ parent::
setUp();
$admin_user =
$this->
drupalCreateUser([ 'administer modules',
'administer software updates',
]);
$this->
drupalLogin($admin_user);
// Create a local cache so the module is not downloaded from drupal.org.
$cache_directory =
_update_manager_cache_directory(TRUE
);
foreach (['.tar.gz', '.zip'
] as $extension) { $filename = 'update_test_new_module' .
$extension;
copy( __DIR__ . '/../../update_test_new_module/8.x-1.0/' .
$filename,
$cache_directory . '/' .
$filename );
} } /**
* Tests the Update Manager module upload via authorize.php functionality.
*
* @dataProvider archiveFileUrlProvider
*/