Issue #2369401 by quietone: User picture file could not be copied

8.0.x
Alex Pott 2015-02-17 01:04:38 +00:00
parent e7bb62123a
commit 4e0c61742e
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ source:
is_public: true
process:
filename: filename
uid: uid
uri:
plugin: file_uri
source:

View File

@ -58,12 +58,14 @@ class MigrateUserPictureFileTest extends MigrateDrupal6TestBase {
$file = array_shift($files);
$this->assertIdentical($file->getFilename(), 'image-test.jpg');
$this->assertIdentical($file->getFileUri(), 'public://image-test.jpg');
$this->assertIdentical($file->getOwnerId(), '2');
$this->assertIdentical($file->getSize(), '1901');
$this->assertIdentical($file->getMimeType(), 'image/jpeg');
$file = array_shift($files);
$this->assertIdentical($file->getFilename(), 'image-test.png');
$this->assertIdentical($file->getFileUri(), 'public://image-test.png');
$this->assertIdentical($file->getOwnerId(), '8');
$this->assertFalse($files);
}