diff --git modules/simpletest/drupal_web_test_case.php modules/simpletest/drupal_web_test_case.php
index 8624399..34589ec 100644
--- modules/simpletest/drupal_web_test_case.php
+++ modules/simpletest/drupal_web_test_case.php
@@ -750,10 +750,13 @@ class DrupalWebTestCase extends DrupalTestCase {
    * @param $settings
    *   An array of settings to change from the defaults.
    *   Example: 'type' => 'foo'.
+   * @param $vars
+   *   An array with variables that need to be saved, before the content type is
+   *   created. Example: 'var' => 'bar'.
    * @return
    *   Created content type.
    */
-  protected function drupalCreateContentType($settings = array()) {
+  protected function drupalCreateContentType($settings = array(), $vars = array()) {
     // Find a non-existent random type name.
     do {
       $name = strtolower($this->randomName(8));
@@ -783,6 +786,13 @@ class DrupalWebTestCase extends DrupalTestCase {
     $type = $forced + $settings + $defaults;
     $type = (object)$type;
 
+    foreach ($vars as $key => $value) {
+      // We imitate the way node_type_form_submit() saved variables before
+      // creating the content type.
+      // We have it here as we need to add the suffix of the content type name.
+      variable_set($key . '_' . $name, $value);
+    }
+
     $saved_type = node_type_save($type);
     node_types_rebuild();
     menu_rebuild();
