cvs diff: Diffing modules/update
Index: modules/update/update.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.test,v
retrieving revision 1.16
diff -u -p -r1.16 update.test
--- modules/update/update.test	5 Aug 2010 23:53:39 -0000	1.16
+++ modules/update/update.test	3 Oct 2010 07:23:22 -0000
@@ -503,7 +503,7 @@ class UpdateTestUploadCase extends Updat
   }
 
   public function setUp() {
-    parent::setUp('update');
+    parent::setUp('update', 'update_test');
     variable_set('allow_authorize_operations', TRUE);
     $admin_user = $this->drupalCreateUser(array('administer software updates', 'administer site configuration'));
     $this->drupalLogin($admin_user);
@@ -532,5 +532,15 @@ class UpdateTestUploadCase extends Updat
     $this->drupalPost('admin/modules/install', $edit, t('Install'));
     $this->assertText(t('@module_name is already installed.', array('@module_name' => 'AAA Update test')), 'Existing module was extracted and not reinstalled.');
   }
-}
 
+  /**
+   * Ensure that archiver extensions are properly merged in the UI.
+   */
+  function testFileNameExtensionMerging() {
+    $this->drupalGet('admin/modules/install');    
+    // Make sure the bogus extension supported by update_test.module is there.
+    $this->assertPattern('/archive 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('/archive extensions are supported:.*zip/', t("Found 'zip' extension"));
+  }
+}
cvs diff: Diffing modules/update/tests
Index: modules/update/tests/update_test.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/tests/update_test.module,v
retrieving revision 1.4
diff -u -p -r1.4 update_test.module
--- modules/update/tests/update_test.module	4 Dec 2009 16:49:47 -0000	1.4
+++ modules/update/tests/update_test.module	3 Oct 2010 07:23:22 -0000
@@ -73,3 +73,16 @@ function update_test_mock_page($project_
   $path = drupal_get_path('module', 'update_test');
   readfile("$path/$project_name.$availability_scenario.xml");
 }
+
+/**
+ * Implement hook_archiver_info().
+ */
+function update_test_archiver_info() {
+  return array(
+    'update_test_archiver' => array(
+      // This is bogus, we only care about the extensions for now.
+      'class' => 'ArchiverUpdateTest',
+      'extensions' => array('update-test-extension'),
+    ),
+  );
+}
