public function EntityTranslationUpgradeTestCase::configureContentTypeForContentTranslation in Entity Translation 7
Configure the "Basic page" content type for entity translation tests.
1 call to EntityTranslationUpgradeTestCase::configureContentTypeForContentTranslation()
- EntityTranslationUpgradeTestCase::setUp in entity_translation_upgrade/
entity_translation_upgrade.test - Sets up a Drupal site for running functional and integration tests.
File
- entity_translation_upgrade/
entity_translation_upgrade.test, line 44 - Tests for Entity Translation module.
Class
- EntityTranslationUpgradeTestCase
- Tests for the upgrade translation process.
Code
public function configureContentTypeForContentTranslation() {
// Configure the "Basic page" content type to use multilingual support with
// content translation.
$edit = array();
$edit['language_content_type'] = TRANSLATION_ENABLED;
$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.'));
}