protected function EntityTranslationToggleFieldsTranslatabilityTestCase::configureContentTypeForRevisions in Entity Translation 7
Configure the "Basic page" content type for entity translation tests.
1 call to EntityTranslationToggleFieldsTranslatabilityTestCase::configureContentTypeForRevisions()
- EntityTranslationToggleFieldsTranslatabilityTestCase::testTogglingFieldsWithDataRevisionable in tests/
entity_translation.test - Tests toggling translatability on fields with data (revisionable).
File
- tests/
entity_translation.test, line 1016 - Tests for Entity translation module.
Class
- EntityTranslationToggleFieldsTranslatabilityTestCase
- Tests for enabling fields to use Entity Translation or disabling them.
Code
protected function configureContentTypeForRevisions() {
// Configure the "Basic page" content type to use revisions.
$edit = array(
'node_options[revision]' => 1,
);
$this
->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type'));
$this
->assertRaw(t('The content type %type has been updated.', array(
'%type' => 'Basic page',
)), t('Basic page content type has been updated.'));
}