function MigrateUserPictureD6FileTest::testUserPicturesWithD6File

Tests the D6 user pictures migration in combination with D6 file.

File

core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserPictureD6FileTest.php, line 60

Class

MigrateUserPictureD6FileTest
User pictures migration.

Namespace

Drupal\Tests\user\Kernel\Migrate\d6

Code

public function testUserPicturesWithD6File() {
    $this->assertEntity(1, 'image-test.jpg', '1901', 'public://image-test.jpg', 'image/jpeg', '2');
    $this->assertEntity(2, 'image-test.png', '125', 'public://image-test.png', 'image/png', '8');
    $this->assertEntity(3, 'Image1.png', '39325', 'public://image-1.png', 'image/png', '1');
    $this->assertEntity(4, 'Image2.jpg', '1831', 'public://image-2.jpg', 'image/jpeg', '1');
    $this->assertEntity(5, 'Image-test.gif', '183', 'public://image-test.gif', 'image/jpeg', '1');
    $this->assertEntity(6, 'html-1.txt', '24', 'public://html-1.txt', 'text/plain', '1');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.