You are here

public function FeedTest::testSetCreatedTime in Feeds 8.3

@covers ::setCreatedTime @covers ::getCreatedTime

File

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

Class

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

Namespace

Drupal\Tests\feeds\Kernel\Entity

Code

public function testSetCreatedTime() {
  $feed = $this
    ->createFeed($this->feedType
    ->id());
  $timestamp = time();
  $feed
    ->setCreatedTime($timestamp);
  $this
    ->assertSame($timestamp, $feed
    ->getCreatedTime());
}