protected function ProfileFieldValuesTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/user/tests/src/Unit/Migrate/d6/ProfileFieldValuesTest.php \Drupal\Tests\user\Unit\Migrate\d6\ProfileFieldValuesTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ user/ tests/ src/ Unit/ Migrate/ d6/ ProfileFieldValuesTest.php, line 45 - Contains \Drupal\Tests\user\Unit\Migrate\d6\ProfileFieldValuesTest.
Class
- ProfileFieldValuesTest
- Tests the d6_profile_field_values source plugin.
Namespace
Drupal\Tests\user\Unit\Migrate\d6Code
protected function setUp() {
$this->databaseContents['profile_values'] = array(
array(
'fid' => '8',
'uid' => '2',
'value' => 'red',
),
array(
'fid' => '9',
'uid' => '2',
'value' => 'Lorem ipsum dolor sit amet...',
),
);
$this->databaseContents['profile_fields'] = array(
array(
'fid' => '8',
'title' => 'Favorite color',
'name' => 'profile_color',
'explanation' => 'List your favorite color',
'category' => 'Personal information',
'page' => 'Peole whose favorite color is %value',
'type' => 'textfield',
'weight' => '-10',
'required' => '0',
'register' => '1',
'visibility' => '2',
'autocomplete' => '1',
'options' => '',
),
array(
'fid' => '9',
'title' => 'Biography',
'name' => 'profile_biography',
'explanation' => 'Tell people a little bit about yourself',
'category' => 'Personal information',
'page' => '',
'type' => 'textarea',
'weight' => '-8',
'required' => '0',
'register' => '0',
'visibility' => '2',
'autocomplete' => '0',
'options' => '',
),
);
parent::setUp();
}