diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-05-13 11:57:39 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-05-13 11:57:39 -0400 |
commit | 43c4a88db30047ea132e7fcc68a5e158008864da (patch) | |
tree | a9ed7f835492c9e744eb0e6f16cca575f15f9a3a /modules/simpletest | |
parent | 753d8190ec66df0408929580a22f94e20d1cc689 (diff) | |
parent | 78f5ec5472c5893a44ac9ffd6b03e8af9c8dff44 (diff) | |
download | brdo-43c4a88db30047ea132e7fcc68a5e158008864da.tar.gz brdo-43c4a88db30047ea132e7fcc68a5e158008864da.tar.bz2 |
Merge branch '7.x' of git.drupal.org:project/drupal into 7.x
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/upgrade/upgrade.node.test | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/modules/simpletest/tests/upgrade/upgrade.node.test b/modules/simpletest/tests/upgrade/upgrade.node.test index 774ab58e1..163dbef5e 100644 --- a/modules/simpletest/tests/upgrade/upgrade.node.test +++ b/modules/simpletest/tests/upgrade/upgrade.node.test @@ -46,70 +46,6 @@ class NodeBodyUpgradePathTestCase extends UpgradePathTestCase { } /** - * Upgrade test for node disabled node types. - * - * Load a filled installation of Drupal 6 and run the upgrade process on it. - */ -class DisabledNodeTypeTestCase extends UpgradePathTestCase { - public static function getInfo() { - return array( - 'name' => 'Disabled node type upgrade path', - 'description' => 'Disabled node type upgrade path tests.', - 'group' => 'Upgrade path', - ); - } - - public function setUp() { - // Path to the database dump. - $this->databaseDumpFiles = array( - drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php', - drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.node_type_broken.database.php', - ); - parent::setUp(); - } - - /** - * Test a successful upgrade. - */ - public function testDisabledNodeTypeUpgrade() { - $this->assertTrue($this->performUpgrade(), t('The upgrade was completed successfully.')); - $this->assertTrue(field_info_instance('comment', 'comment_body', 'comment_node_broken'), 'Comment body field instance was created for comments attached to the disabled broken node type'); - } -} - -/** - * Upgrade test for node disabled node types. - * - * Load a filled installation of Drupal 6 and run the upgrade process on it. - */ -class DisabledNodeTypeTestCase extends UpgradePathTestCase { - public static function getInfo() { - return array( - 'name' => 'Disabled node type upgrade path', - 'description' => 'Disabled node type upgrade path tests.', - 'group' => 'Upgrade path', - ); - } - - public function setUp() { - // Path to the database dump. - $this->databaseDumpFiles = array( - drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php', - drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.node_type_broken.database.php', - ); - parent::setUp(); - } - - /** - * Test a successful upgrade. - */ - public function testDisabledNodeTypeUpgrade() { - $this->assertTrue($this->performUpgrade(), t('The upgrade was completed successfully.')); - $this->assertTrue(field_info_instance('comment', 'comment_body', 'comment_node_broken'), 'Comment body field instance was created for comments attached to the disabled broken node type'); - } -} - -/** * Upgrade test for node type poll. * * Load a bare installation of Drupal 6 and run the upgrade process on it. |