You are here

protected property ProfileFieldTest::$expectedResults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/tests/src/Unit/Migrate/ProfileFieldTest.php \Drupal\Tests\user\Unit\Migrate\ProfileFieldTest::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/user/tests/src/Unit/Migrate/ProfileFieldTest.php, line 28
Contains \Drupal\Tests\user\Unit\Migrate\ProfileFieldTest.

Class

ProfileFieldTest
Tests profile_field source plugin.

Namespace

Drupal\Tests\user\Unit\Migrate

Code

protected $expectedResults = [
  [
    'fid' => 1,
    'title' => 'First name',
    'name' => 'profile_first_name',
    'explanation' => 'First name user',
    'category' => 'profile',
    'page' => '',
    'type' => 'textfield',
    'weight' => 0,
    'required' => 1,
    'register' => 0,
    'visibility' => 2,
    'autocomplete' => 0,
    'options' => [],
  ],
  [
    'fid' => 2,
    'title' => 'Last name',
    'name' => 'profile_last_name',
    'explanation' => 'Last name user',
    'category' => 'profile',
    'page' => '',
    'type' => 'textfield',
    'weight' => 0,
    'required' => 0,
    'register' => 0,
    'visibility' => 2,
    'autocomplete' => 0,
    'options' => [],
  ],
  [
    'fid' => 3,
    'title' => 'Policy',
    'name' => 'profile_policy',
    'explanation' => 'A checkbox that say if you accept policy of website',
    'category' => 'profile',
    'page' => '',
    'type' => 'checkbox',
    'weight' => 0,
    'required' => 1,
    'register' => 1,
    'visibility' => 2,
    'autocomplete' => 0,
    'options' => [],
  ],
];