Index: simpletest.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/simpletest.install,v
retrieving revision 1.4.2.3.2.15
diff -u -p -r1.4.2.3.2.15 simpletest.install
--- simpletest.install	8 Feb 2009 02:46:50 -0000	1.4.2.3.2.15
+++ simpletest.install	21 Mar 2009 14:43:20 -0000
@@ -130,7 +130,7 @@ function simpletest_requirements($phase)
   );
   if (!$has_domdocument) {
     $requirements['php_domdocument']['severity'] = REQUIREMENT_ERROR;
-    $requirements['php_domdocument']['description'] =t('SimpleTest requires the DOMDocument class to be available. Please check the configure command at the <a href="@link-phpinfo">PHP info page</a>.', array('@link-phpinfo' => url('admin/reports/status/php')));
+    $requirements['php_domdocument']['description'] = $t('SimpleTest requires the DOMDocument class to be available. Please check the configure command at the <a href="@link-phpinfo">PHP info page</a>.', array('@link-phpinfo' => url('admin/reports/status/php')));
   }
 
   // Drupal 6.
@@ -138,14 +138,14 @@ function simpletest_requirements($phase)
   if (isset($GLOBALS['simpletest_installed'])) {
      $requirements['simpletest_settings'] = array(
       'title' => $t('SimpleTest code addition'),
-      'value' => t('Found'),
-      'severity' => REQUIREMENT_OK
+      'value' => $t('Found'),
+      'severity' => REQUIREMENT_OK,
     );
   }
   else {
     $requirements['simpletest_settings'] = array(
       'title' => $t('SimpleTest code addition'),
-      'value' => t('Not-found'),
+      'value' => $t('Not-found'),
       'severity' => REQUIREMENT_ERROR,
       'description' => $t('SimpleTest could not be installed. Must add code to the %settings file please see
                            <a href="@install">INSTALL.txt</a>.',
@@ -241,7 +241,7 @@ function simpletest_schema() {
 
 /**
  * Upgrade simpletest 5.x-1.x and 6.x-1.x to 6.x-2.1 release.
- * 
+ *
  * Note: This does not fix the update_7000 bug introduced in 6.x-2.1 release.
  */
 function simpletest_update_6000() {
@@ -287,66 +287,66 @@ function simpletest_update_6000() {
 
   // Install 6.x-2.1 schema.
   $schema['simpletest'] = array(
-    'description' => t('Stores simpletest messages'),
+    'description' => 'Stores simpletest messages',
     'fields' => array(
       'message_id'  => array(
         'type' => 'serial',
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique simpletest message ID.'),
+        'description' => 'Primary Key: Unique simpletest message ID.',
       ),
       'test_id' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Test ID, messages belonging to the same ID are reported together'),
+        'description' => 'Test ID, messages belonging to the same ID are reported together',
       ),
       'test_class' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('The name of the class that created this message.'),
+        'description' => 'The name of the class that created this message.',
       ),
       'status' => array(
         'type' => 'varchar',
         'length' => 9,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Message status. Core understands pass, fail, exception.'),
+        'description' => 'Message status. Core understands pass, fail, exception.',
       ),
       'message' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('The message itself.'),
+        'description' => 'The message itself.',
       ),
       'message_group' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('The message group this message belongs to. For example: warning, browser, user.'),
+        'description' => 'The message group this message belongs to. For example: warning, browser, user.',
       ),
       'caller' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Name of the caller function or method that created this message.'),
+        'description' => 'Name of the caller function or method that created this message.',
       ),
       'line' => array(
         'type' => 'int',
         'not null' => TRUE,
         'default' => 0,
-        'description' => t('Line number on which the function is called.'),
+        'description' => 'Line number on which the function is called.',
       ),
       'file' => array(
         'type' => 'varchar',
         'length' => 255,
         'not null' => TRUE,
         'default' => '',
-        'description' => t('Name of the file where the function is called.'),
+        'description' => 'Name of the file where the function is called.',
       ),
     ),
     'primary key' => array('message_id'),
@@ -355,14 +355,14 @@ function simpletest_update_6000() {
     ),
   );
   $schema['simpletest_test_id'] = array(
-    'description' => t('Stores simpletest test IDs, used to auto-incrament the test ID so that a fresh test ID is used.'),
+    'description' => 'Stores simpletest test IDs, used to auto-incrament the test ID so that a fresh test ID is used.',
     'fields' => array(
       'test_id'  => array(
         'type' => 'serial',
         'not null' => TRUE,
-        'description' => t('Primary Key: Unique simpletest ID used to group test results together. Each time a set of tests
-                            are run a new test ID is used.')
-      )
+        'description' => 'Primary Key: Unique simpletest ID used to group test results together. Each time a set of tests
+                            are run a new test ID is used.',
+      ),
     ),
     'primary key' => array('test_id')
   );
@@ -392,7 +392,7 @@ function simpletest_update_6001() {
   );
 
   // Clear test results to prevent odd results.
-  db_query('DELETE FROM {simpletest}');
+  $ret[] = update_sql('DELETE FROM {simpletest}');
 
   db_drop_field($ret, 'simpletest', 'message');
   db_add_field($ret, 'simpletest', 'message', $schema);
@@ -415,7 +415,7 @@ function simpletest_update_6002() {
   );
 
   // Clear test results to prevent odd results.
-  db_query('DELETE FROM {simpletest}');
+  $ret[] = update_sql('DELETE FROM {simpletest}');
 
   db_drop_field($ret, 'simpletest', 'caller');
   db_add_field($ret, 'simpletest', 'function', $schema);
