summaryrefslogtreecommitdiff
path: root/modules/image
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image')
-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',