UpdateTestUploadCase::testFileNameExtensionMerging

7 update.test UpdateTestUploadCase::testFileNameExtensionMerging()
8 update.test UpdateTestUploadCase::testFileNameExtensionMerging()

Ensure that archiver extensions are properly merged in the UI.

File

modules/update/update.test, line 678
Tests for update.module.

Code

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/', t("Found 'update-test-extension' extension"));
  // Make sure it didn't clobber the first option from core.
  $this->assertPattern('/file extensions are supported:.*tar/', t("Found 'tar' extension"));
}
Login or register to post comments