summaryrefslogtreecommitdiff
path: root/modules/image/image.test
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-01-21 10:03:49 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-01-21 10:03:49 -0800
commit14a6ec5b916f706d154504ba90464cd76821ed58 (patch)
treee7bdf57e2283a2f61a01d04b47d33d4058c74f1b /modules/image/image.test
parentab4c445692912b68b949f84cbfd5786244f9cbd7 (diff)
downloadbrdo-14a6ec5b916f706d154504ba90464cd76821ed58.tar.gz
brdo-14a6ec5b916f706d154504ba90464cd76821ed58.tar.bz2
Issue #131737 by malc0mn, pillarsdotnet, scor, xjm, nvanhove, oriol_e9g, mrfelton, aspilicious, Pancho, v1nce, dhthwy: Fixed Ensure that the Return-Path is set when sending mail on both Windows and non-Windows systems.
Diffstat (limited to 'modules/image/image.test')
-rw-r--r--modules/image/image.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/image/image.test b/modules/image/image.test
index 9cc06b935..d0946558b 100644
--- a/modules/image/image.test
+++ b/modules/image/image.test
@@ -746,7 +746,10 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
$widget_settings = array(
'preview_image_style' => 'medium',
);
- $this->createImageField($field_name, 'article', array(), $instance_settings, $widget_settings);
+ $field = $this->createImageField($field_name, 'article', array(), $instance_settings, $widget_settings);
+ $field['deleted'] = 0;
+ $table = _field_sql_storage_tablename($field);
+ $schema = drupal_get_schema($table, TRUE);
$instance = field_info_instance('node', $field_name, 'article');
$this->drupalGet('node/add/article');
@@ -789,18 +792,17 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
// Verify that alt/title longer than allowed results in a validation error.
$test_size = 2000;
- $max_size = 128;
$edit = array(
$field_name . '[' . LANGUAGE_NONE . '][0][alt]' => $this->randomName($test_size),
$field_name . '[' . LANGUAGE_NONE . '][0][title]' => $this->randomName($test_size),
);
$this->drupalPost('node/' . $nid . '/edit', $edit, t('Save'));
$this->assertRaw(t('Alternate text cannot be longer than %max characters but is currently %length characters long.', array(
- '%max' => $max_size,
+ '%max' => $schema['fields'][$field_name .'_alt']['length'],
'%length' => $test_size,
)));
$this->assertRaw(t('Title cannot be longer than %max characters but is currently %length characters long.', array(
- '%max' => $max_size,
+ '%max' => $schema['fields'][$field_name .'_title']['length'],
'%length' => $test_size,
)));
}