summaryrefslogtreecommitdiff
path: root/modules/image/image.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-27 07:52:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-27 07:52:03 +0000
commit39dc13133f33c5c91b0536581696be811c01d910 (patch)
treedd9c8810ebc6938c1738822ecb7022eb0ac3dce0 /modules/image/image.test
parent890ee7f45f8216f20093c81513eff6a025b8dc78 (diff)
downloadbrdo-39dc13133f33c5c91b0536581696be811c01d910.tar.gz
brdo-39dc13133f33c5c91b0536581696be811c01d910.tar.bz2
- Patch #718254 by andypost: field names were too long -- make PostgreSQL happy.
Diffstat (limited to 'modules/image/image.test')
-rw-r--r--modules/image/image.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/image/image.test b/modules/image/image.test
index 152f2c93a..54ca9084c 100644
--- a/modules/image/image.test
+++ b/modules/image/image.test
@@ -570,7 +570,7 @@ class ImageFieldTestCase extends DrupalWebTestCase {
*/
function uploadNodeImage($image, $field_name, $type) {
$edit = array(
- 'title' => $this->randomName(),
+ 'title' => $this->randomString(),
);
$edit['files[' . $field_name . '_' . LANGUAGE_NONE . '_0]'] = realpath($image->uri);
$this->drupalPost('node/add/' . $type, $edit, t('Save'));
@@ -598,7 +598,7 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
* Test image formatters on node display.
*/
function testImageFieldFormatters() {
- $field_name = 'field_' . strtolower($this->randomName());
+ $field_name = strtolower($this->randomName());
$this->createImageField($field_name, 'article');
// Create a new node with an image attached.
@@ -647,7 +647,7 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
* Tests for image field settings.
*/
function testImageFieldSettings() {
- $field_name = 'field_' . strtolower($this->randomName());
+ $field_name = strtolower($this->randomName());
$instance_settings = array(
'alt_field' => 1,
'file_extensions' => 'gif jpg jpeg',
@@ -705,7 +705,7 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
*/
function testImageFieldDefaultImage() {
// Create a new image field.
- $field_name = 'field_' . strtolower($this->randomName());
+ $field_name = strtolower($this->randomName());
$this->createImageField($field_name, 'article');
// Create a new node, with no images and verify that no images are
@@ -751,7 +751,7 @@ class ImageFieldDisplayTestCase extends ImageFieldTestCase {
// Clear field info cache so the new default image is detected.
field_info_cache_clear();
$field = field_info_field($field_name);
- $this->assertFalse($field['settings']['default_image'], t('Default image removed from field.'));
+ $this->assertFalse($field['settings']['default_image'], t('Default image removed from field.'));
}
}
@@ -771,7 +771,7 @@ class ImageFieldValidateTestCase extends ImageFieldTestCase {
* Test min/max resolution settings.
*/
function testResolution() {
- $field_name = 'field_' . strtolower($this->randomName());
+ $field_name = strtolower($this->randomName());
$instance_settings = array(
'max_resolution' => '100x100',
'min_resolution' => '50x50',