You are here

public function FeedTest::testSaveStates in Feeds 8.3

@covers ::saveStates

File

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

Class

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

Namespace

Drupal\Tests\feeds\Kernel\Entity

Code

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

  // Set a state.
  $state = $this
    ->createMock(StateInterface::class);
  $feed
    ->setState(StateInterface::FETCH, $state);

  // Save states.
  $feed
    ->saveStates();
}