public function FeedTest::testGetState in Feeds 8.3
@covers ::getState
File
- tests/
src/ Kernel/ Entity/ FeedTest.php, line 358
Class
- FeedTest
- @coversDefaultClass \Drupal\feeds\Entity\Feed @group feeds
Namespace
Drupal\Tests\feeds\Kernel\EntityCode
public function testGetState() {
$feed = $this
->createFeed($this->feedType
->id());
$this
->assertInstanceOf(StateInterface::class, $feed
->getState(StateInterface::FETCH));
$this
->assertInstanceOf(StateInterface::class, $feed
->getState(StateInterface::PARSE));
$this
->assertInstanceOf(StateInterface::class, $feed
->getState(StateInterface::PROCESS));
$this
->assertInstanceOf(CleanStateInterface::class, $feed
->getState(StateInterface::CLEAN));
$this
->assertInstanceOf(StateInterface::class, $feed
->getState(StateInterface::CLEAR));
}