You are here

public function ImporterTest::testTaxonomyTermCsvImporter in CSV Importer 8

Test taxonomy term importer.

File

tests/src/FunctionalJavascript/ImporterTest.php, line 73

Class

ImporterTest
Tests CSV importer.

Namespace

Drupal\Tests\csv_importer\FunctionalJavascript

Code

public function testTaxonomyTermCsvImporter() {
  $assert = $this
    ->assertSession();
  $this
    ->processForm('taxonomy_term', 'csv_importer_taxonomy');
  $this
    ->drupalGet('/csv-importer-term-1');
  $assert
    ->statusCodeEquals(200);
  $assert
    ->elementTextContains('css', '.field--name-name', 'CSV importer term 1');
  $this
    ->assertFields();
}