Commit 74d7b55b authored by catch's avatar catch

Issue #2302259 by quietone: Test coverage for user profile link type from D6

parent 0e454b55
......@@ -30531,6 +30531,21 @@
'autocomplete' => '1',
'options' => '',
))
->values(array(
'fid' => '13',
'title' => 'Blog',
'name' => 'profile_blog',
'explanation' => 'Paste the full URL, including http://, of your personal blog.',
'category' => 'Personal information',
'page' => '',
'type' => 'url',
'weight' => '3',
'required' => '0',
'register' => '0',
'visibility' => '3',
'autocomplete' => '0',
'options' => '',
))
->values(array(
'fid' => '14',
'title' => 'Birthdate',
......@@ -30561,21 +30576,6 @@
'autocomplete' => '0',
'options' => '',
))
->values(array(
'fid' => '16',
'title' => 'Blog',
'name' => 'profile_blog',
'explanation' => 'Paste the full URL, including http://, of your personal blog.',
'category' => 'Personal information',
'page' => '',
'type' => 'url',
'weight' => '3',
'required' => '0',
'register' => '0',
'visibility' => '3',
'autocomplete' => '0',
'options' => '',
))
->execute();
$connection->schema()->createTable('profile_values', array(
......
......@@ -54,6 +54,11 @@ public function testUserProfileValues() {
$this->assertIdentical('Queen', $user->profile_bands[5]->value);
$this->assertIdentical('The White Stripes', $user->profile_bands[6]->value);
$this->assertIdentical('1974-06-02', $user->profile_birthdate->value);
$this->assertIdentical('http://example.com/blog', $user->profile_blog->uri);
$this->assertNull($user->profile_blog->title);
$this->assertIdentical([], $user->profile_blog->options);
$this->assertIdentical('http://example.com/blog', $user->profile_blog->uri);
$this->assertNull($user->profile_love_migrations->value);
$user = User::load(8);
$this->assertIdentical('Forward/slash', $user->profile_sold_to->value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment