diff --git a/core/modules/simpletest/tests/image.test b/core/modules/simpletest/tests/image.test index cabdc04..ab008e5 100644 --- a/core/modules/simpletest/tests/image.test +++ b/core/modules/simpletest/tests/image.test @@ -464,19 +464,19 @@ class ImageToolkitGdTestCase extends DrupalWebTestCase { } /** - * Move related tests + * Tests the file move function for managed files. */ class ImageFileMoveTest extends ImageToolkitTestCase { public static function getInfo() { return array( 'name' => 'Image moving', - 'description' => 'Tests the file move function.', + 'description' => 'Tests the file move function for managed files.', 'group' => 'Image', ); } /** - * Move a normal file. + * Tests moving a randomly generated image. */ function testNormal() { // Pick a file for testing. @@ -488,7 +488,7 @@ class ImageFileMoveTest extends ImageToolkitTestCase { image_style_create_derivative($style, $file->uri, $derivative_uri); // Check if derivative image exists. - $this->assertTrue(file_exists($derivative_uri), t('Make sure derivative image is generated successfully.')); + $this->assertTrue(file_exists($derivative_uri), 'Make sure derivative image is generated successfully.'); // Clone the object so we don't have to worry about the function changing // our reference copy. @@ -496,10 +496,10 @@ class ImageFileMoveTest extends ImageToolkitTestCase { $result = file_move(clone $file, $desired_filepath, FILE_EXISTS_ERROR); // Check if image has been moved. - $this->assertTrue(file_exists($result->uri), t('Make sure image is moved successfully.')); + $this->assertTrue(file_exists($result->uri), 'Make sure image is moved successfully.'); // Check if derivative image has been flushed. - $this->assertFalse(file_exists($derivative_uri), t('Make sure derivative image has been flushed.')); + $this->assertFalse(file_exists($derivative_uri), 'Make sure derivative image has been flushed.'); } }