function UpdateUploadTest::testFileNameExtensionMerging in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/Tests/UpdateUploadTest.php \Drupal\update\Tests\UpdateUploadTest::testFileNameExtensionMerging()
Ensures that archiver extensions are properly merged in the UI.
File
- core/
modules/ update/ src/ Tests/ UpdateUploadTest.php, line 134 - Contains \Drupal\update\Tests\UpdateUploadTest.
Class
- UpdateUploadTest
- Tests the Update Manager module's upload and extraction functionality.
Namespace
Drupal\update\TestsCode
function testFileNameExtensionMerging() {
$this
->drupalGet('admin/modules/install');
// Make sure the bogus extension supported by update_test.module is there.
$this
->assertPattern('/file extensions are supported:.*update-test-extension/', "Found 'update-test-extension' extension.");
// Make sure it didn't clobber the first option from core.
$this
->assertPattern('/file extensions are supported:.*tar/', "Found 'tar' extension.");
}