You are here

public function OgMigrate7000TestCase::testogMigrateUpgradeGroupDescription in Organic groups 7

Test a group description upgrade.

File

og_migrate/og_migrate.test, line 147

Class

OgMigrate7000TestCase
Upgrade 7000 test.

Code

public function testogMigrateUpgradeGroupDescription() {

  // Run the required migration.
  $edit = array(
    'migrate[upgrade_group]' => TRUE,
    'migrate[upgrade_group_description]' => TRUE,
  );
  $this
    ->drupalPost('admin/config/group/group-migrate', $edit, t('Migrate'));

  // Assert description was converted to a field.
  $node = node_load(1);
  $this
    ->assertTrue($node->og_description[LANGUAGE_NONE][0]['value'] == 'description group without posts.', t('Description fields has correct data.'));
}