You are here

public function EntityProcessorBaseTest::testExpiryTime in Feeds 8.3

@covers ::expiryTime

File

tests/src/Kernel/Feeds/Processor/EntityProcessorBaseTest.php, line 301

Class

EntityProcessorBaseTest
@coversDefaultClass \Drupal\feeds\Feeds\Processor\EntityProcessorBase @group feeds

Namespace

Drupal\Tests\feeds\Kernel\Feeds\Processor

Code

public function testExpiryTime() {
  $this
    ->assertEquals(EntityProcessorBase::EXPIRE_NEVER, $this->processor
    ->expiryTime());

  // Change the expire setting.
  $config = $this->processor
    ->getConfiguration();
  $config['expire'] = 100;
  $this->processor
    ->setConfiguration($config);
  $this
    ->assertEquals(100, $this->processor
    ->expiryTime());
}