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

testAddCustomGroupMediaItemsFieldsWithItemInterface() public method

Check if a custom group media items field is properly rendered with ItemInterface.
    public function testAddCustomGroupMediaItemsFieldsWithItemInterface()
    {
        $feed = $this->manager->get('article');
        $feed->add(new FakeItemInterfaceEntity());
        $feed->addItemField(new GroupItemField('images', new MediaItemField('getFeedMediaMultipleItems')));
        $output = $feed->render('rss');
        $this->assertContains('<images>', $output);
        $this->assertContains('<enclosure url="http://website.com/image.jpg" type="image/jpeg" length="500"/>', $output);
        $this->assertContains('<enclosure url="http://website.com/image2.png" type="image/png" length="600"/>', $output);
        $this->assertContains('</images>', $output);
    }