You are here

public function TemporaryTest::testOneTemporaryTarget in Feeds 8.3

Basic test import with a temporary target.

File

tests/src/Kernel/Feeds/Target/TemporaryTest.php, line 48

Class

TemporaryTest
@coversDefaultClass \Drupal\feeds\Feeds\Target\Temporary @group feeds

Namespace

Drupal\Tests\feeds\Kernel\Feeds\Target

Code

public function testOneTemporaryTarget() {

  // Import CSV file.
  $feed = $this
    ->createFeed($this->feedType
    ->id(), [
    'source' => $this
      ->resourcesPath() . '/csv/content.csv',
  ]);
  $feed
    ->import();
  $this
    ->assertNodeCount(2);
}