You are here

public function FileTransferAuthorizeFormTest::archiveFileUrlProvider in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php \Drupal\Tests\update\Functional\FileTransferAuthorizeFormTest::archiveFileUrlProvider()
  2. 10 core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php \Drupal\Tests\update\Functional\FileTransferAuthorizeFormTest::archiveFileUrlProvider()

Data provider method for testViaAuthorize().

Each of these release URLs has been cached in the setUp() method.

File

core/modules/update/tests/src/Functional/FileTransferAuthorizeFormTest.php, line 78

Class

FileTransferAuthorizeFormTest
Tests the Update Manager module upload via authorize.php functionality.

Namespace

Drupal\Tests\update\Functional

Code

public function archiveFileUrlProvider() {
  return [
    'tar.gz' => [
      'url' => 'https://ftp.drupal.org/files/projects/update_test_new_module.tar.gz',
    ],
    'zip' => [
      'url' => 'https://ftp.drupal.org/files/projects/update_test_new_module.zip',
    ],
  ];
}