public function EntityTranslationUpgradeTestCase::makeBodyFieldTranslatable in Entity Translation 7
Toggle body field's translatability.
1 call to EntityTranslationUpgradeTestCase::makeBodyFieldTranslatable()
- EntityTranslationUpgradeTestCase::testUpgradeContentToEntityTranslation in entity_translation_upgrade/
entity_translation_upgrade.test - Tests copying of source node's body value in the add translation form page.
File
- entity_translation_upgrade/
entity_translation_upgrade.test, line 57 - Tests for Entity Translation module.
Class
- EntityTranslationUpgradeTestCase
- Tests for the upgrade translation process.
Code
public function makeBodyFieldTranslatable() {
$edit = array();
$this
->drupalGet('admin/structure/types/manage/page/fields/body');
$this
->clickLink('Enable translation');
$this
->drupalPost(NULL, array(), t('Confirm'));
$this
->assertRaw(t('Data successfully processed.'), t('Body field have been made translatable.'));
}