public function DrushCommandsTest::testFeedback in Migrate Tools 8.4
Same name and namespace in other branches
- 8.5 tests/src/Functional/DrushCommandsTest.php \Drupal\Tests\migrate_tools\Functional\DrushCommandsTest::testFeedback()
Tests migrate:import with feedback.
Throws
\Drupal\Component\Plugin\Exception\PluginException
File
- tests/
src/ Functional/ DrushCommandsTest.php, line 34
Class
- DrushCommandsTest
- Execute drush on fully functional website.
Namespace
Drupal\Tests\migrate_tools\FunctionalCode
public function testFeedback() {
$this
->drush('mim', [
'fruit_terms',
], [
'feedback' => 2,
]);
$expected = [
'1/3 [=========>------------------] 33%',
' 2/3 [==================>---------] 66% [notice] Processed 2 items (2 created, 0 updated, 0 failed, 0 ignored) - continuing with \'fruit_terms\'',
'',
' 3/3 [============================] 100% [notice] Processed 1 item (1 created, 0 updated, 0 failed, 0 ignored) - done with \'fruit_terms\'',
];
$this
->assertEquals($expected, $this
->getErrorOutputAsList());
}