From c90e9f9109d7b7d7abccde5684b0cab87c1a9d18 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 Sep 2009 15:12:56 +0000 Subject: - Patch #585742 by Damien Tournoud | Amitaibu: content type wasn't created after drupalCreateContentType(). --- modules/simpletest/drupal_web_test_case.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 80495ede6..455a1213a 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -762,6 +762,7 @@ class DrupalWebTestCase extends DrupalTestCase { $defaults = array( 'type' => $name, 'name' => $name, + 'base' => 'node_content', 'description' => '', 'help' => '', 'title_label' => 'Title', @@ -783,6 +784,7 @@ class DrupalWebTestCase extends DrupalTestCase { $saved_type = node_type_save($type); node_types_rebuild(); + menu_rebuild(); $this->assertEqual($saved_type, SAVED_NEW, t('Created content type %type.', array('%type' => $type->type))); -- cgit v1.2.3