Issue #2369401 by quietone: User picture file could not be copied
parent
e7bb62123a
commit
4e0c61742e
|
@ -8,6 +8,7 @@ source:
|
|||
is_public: true
|
||||
process:
|
||||
filename: filename
|
||||
uid: uid
|
||||
uri:
|
||||
plugin: file_uri
|
||||
source:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue