Commit ee3544fa authored by catch's avatar catch

Issue #2810071 by mikeryan: d6_profile_field_values processes rows multiple times

parent 2a3a5855
......@@ -147,7 +147,7 @@ public function testRetrieval() {
public function testSourceCount() {
$count = $this->source->count();
$this->assertTrue(is_numeric($count));
$this->assertEquals($count, $this->expectedCount);
$this->assertEquals($this->expectedCount, $count);
}
/**
......
......@@ -21,7 +21,7 @@ class ProfileFieldValues extends DrupalSqlBase {
public function query() {
$query = $this->select('profile_values', 'pv')
->distinct()
->fields('pv', array('fid', 'uid'));
->fields('pv', array('uid'));
return $query;
}
......
......@@ -23,12 +23,7 @@ class ProfileFieldValuesTest extends MigrateSqlSourceTestCase {
protected $expectedResults = array(
array(
'fid' => '8',
'profile_color' => array('red'),
'uid' => '2',
),
array(
'fid' => '9',
'profile_biography' => array('Lorem ipsum dolor sit amet...'),
'uid' => '2',
),
......
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