public function DrushCommandsTest::testLimit in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 tests/src/Functional/DrushCommandsTest.php \Drupal\Tests\migrate_tools\Functional\DrushCommandsTest::testLimit()
Tests migrate:import with limit.
File
- tests/
src/ Functional/ DrushCommandsTest.php, line 51
Class
- DrushCommandsTest
- Execute drush on fully functional website.
Namespace
Drupal\Tests\migrate_tools\FunctionalCode
public function testLimit() : void {
$this
->drush('mim', [
'fruit_terms',
], [
'limit' => 2,
]);
$this
->assertStringContainsString('1/3', $this
->getErrorOutput());
$this
->assertStringContainsString('[notice] Processed 2 items (2 created, 0 updated, 0 failed, 0 ignored) - done with \'fruit_terms\'', $this
->getErrorOutput());
$this
->assertStringNotContainsString('3/3', $this
->getErrorOutput());
}