Eko\FeedBundle\Tests\Formatter\RSSFormatterTest::testNonExistantCustomItemFieldWithRoutedItemInterface PHP Method

testNonExistantCustomItemFieldWithRoutedItemInterface() public method

Check if an exception is thrown when trying to render a non-existant method with RoutedItemInterface.
    public function testNonExistantCustomItemFieldWithRoutedItemInterface()
    {
        $feed = $this->manager->get('article');
        $feed->add(new FakeRoutedItemInterfaceEntity());
        $feed->addItemField(new ItemField('fake_custom', 'getFeedDoNotExistsItemCustomMethod'));
        $this->setExpectedException('InvalidArgumentException', 'Method "getFeedDoNotExistsItemCustomMethod" should be defined in your entity.');
        $feed->render('rss');
    }