/**
* The iterator plugin being tested.
*
- * @var \Drupal\migrate\Plugin\migrate\process\TestIterator
+ * @var \Drupal\migrate\Plugin\migrate\process\Iterator
*/
protected $plugin;
/**
* Tests the iterator process plugin.
+ *
+ * @group legacy
+ * @expectedDeprecation The Drupal\migrate\Plugin\migrate\process\Iterator is deprecated in Drupal 8.4.x and will be removed before Drupal 9.0.0. Instead, use Drupal\migrate\Plugin\migrate\process\SubProcess
*/
public function testIterator() {
$migration = $this->getMigration();
// values ended up in the proper destinations, and that the value of the
// key (@id) is the same as the destination ID (42).
$new_value = $plugin->transform($current_value, $migrate_executable, $row, 'test');
- $this->assertSame(count($new_value), 1);
- $this->assertSame(count($new_value[42]), 2);
- $this->assertSame($new_value[42]['foo'], 'test');
- $this->assertSame($new_value[42]['id'], 42);
+ $this->assertSame(1, count($new_value));
+ $this->assertSame(2, count($new_value[42]));
+ $this->assertSame('test', $new_value[42]['foo']);
+ $this->assertSame(42, $new_value[42]['id']);
}
}