function UpdateUploadTest::testFileNameExtensionMerging

Same name in other branches
  1. 8.9.x core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testFileNameExtensionMerging()
  2. 10 core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testFileNameExtensionMerging()
  3. 11.x core/modules/update/tests/src/Functional/UpdateUploadTest.php \Drupal\Tests\update\Functional\UpdateUploadTest::testFileNameExtensionMerging()

Ensures that archiver extensions are properly merged in the UI.

File

core/modules/update/tests/src/Functional/UpdateUploadTest.php, line 155

Class

UpdateUploadTest
Tests the Update Manager module's upload and extraction functionality.

Namespace

Drupal\Tests\update\Functional

Code

public function testFileNameExtensionMerging() {
    $this->drupalGet('admin/modules/install');
    // Make sure the bogus extension supported by update_test.module is there.
    $this->assertSession()
        ->responseMatches('/file extensions are supported:.*update-test-extension/');
    // Make sure it didn't clobber the first option from core.
    $this->assertSession()
        ->responseMatches('/file extensions are supported:.*tar/');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.