You are here

public function DrushTest::testFieldsSource in Migrate Tools 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\DrushTest::testFieldsSource()

Tests drush mfs.

File

tests/src/Kernel/DrushTest.php, line 270

Class

DrushTest
Tests for the Drush 9 commands.

Namespace

Drupal\Tests\migrate_tools\Kernel

Code

public function testFieldsSource() {

  /** @var \Consolidation\OutputFormatters\StructuredData\RowsOfFields $result */
  $result = $this->commands
    ->fieldsSource('fruit_terms');
  $rows = $result
    ->getArrayCopy();
  $this
    ->assertCount(1, $rows);
  $this
    ->assertSame('name', $rows[0]['machine_name']);
  $this
    ->assertSame('name', $rows[0]['description']);
}