Eko\FeedBundle\Feed\FeedManager::has PHP Method

has() public method

Check if feed exists in configuration under 'feeds' node.
public has ( string $feed ) : boolean
$feed string Feed name
return boolean
    public function has($feed)
    {
        return isset($this->config['feeds'][$feed]);
    }

Usage Example

Example #1
0
 /**
  * Check if a fake feed name is not marked as existing
  */
 public function testFeedDoNotExists()
 {
     $this->assertFalse($this->manager->has('fake_feed_name'));
 }