Asserts that translatability has the expected value for the given bundle.
string $entity_type: The entity type for which to check translatibility.
string $bundle: The bundle for which to check translatibility.
boolean $enabled: TRUE if translatibility should be enabled, FALSE otherwise.
array $edit: An array of values to submit to the entity translation settings page.
boolean TRUE if the assertion succeeded, FALSE otherwise.
protected function assertSettings($entity_type, $bundle, $enabled, $edit) {
$this
->drupalPost('admin/config/regional/content-language', $edit, t('Save'));
$args = array(
'@entity_type' => $entity_type,
'@bundle' => $bundle,
'@enabled' => $enabled ? 'enabled' : 'disabled',
);
$message = format_string('Translation for entity @entity_type (@bundle) is @enabled.', $args);
entity_info_cache_clear();
return $this
->assertEqual(translation_entity_enabled($entity_type, $bundle), $enabled, $message);
}