You are here

public function FeedTest::testFinishImport in Feeds 8.3

@covers ::finishImport @covers ::getImportedTime

File

tests/src/Kernel/Entity/FeedTest.php, line 259

Class

FeedTest
@coversDefaultClass \Drupal\feeds\Entity\Feed @group feeds

Namespace

Drupal\Tests\feeds\Kernel\Entity

Code

public function testFinishImport() {
  $feed = $this
    ->createFeed($this->feedType
    ->id());
  $feed
    ->finishImport();

  // Assert imported time was updated.
  $this
    ->assertGreaterThanOrEqual(\Drupal::time()
    ->getRequestTime(), $feed
    ->getImportedTime());
}