public function UserImportUpdateExportTest::userImportExportDataProvider in Acquia Content Hub 8.2
Data provider for testUserImport.
Return value
array Data provider set.
File
- tests/
src/ Kernel/ UserImportUpdateExportTest.php, line 156
Class
- UserImportUpdateExportTest
- Tests user export, update, and import.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
public function userImportExportDataProvider() {
return [
// Match on uuid, update username and email.
[
0,
1,
[
[
'type' => 'user',
'uuid' => 'f150c156-ef63-4f08-8d69-f15e5ee11106',
],
],
'user',
'f150c156-ef63-4f08-8d69-f15e5ee11106',
],
// No-email address and then update the right user.
[
2,
3,
[
[
'type' => 'user',
'uuid' => 'f150c156-ef63-4f08-8d69-f15e5ee11106',
],
],
'user',
'f150c156-ef63-4f08-8d69-f15e5ee11106',
],
// Pre-existing local user, match on email, update email.
[
4,
5,
[
[
'type' => 'user',
'uuid' => 'b7a60b03-3ae2-4480-b261-f72021817346',
],
],
'user',
'b7a60b03-3ae2-4480-b261-f72021817346',
FALSE,
],
];
}