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

testAddCustomGroupMultipleItemFieldWithItemInterface() public method

Check if a custom group item field with multiple item fields is properly rendered with ItemInterface.
    public function testAddCustomGroupMultipleItemFieldWithItemInterface()
    {
        $feed = $this->manager->get('article');
        $feed->add(new FakeItemInterfaceEntity());
        $feed->addItemField(new GroupItemField('author', [new ItemField('name', 'getFeedItemAuthorName', ['cdata' => true]), new ItemField('email', 'getFeedItemAuthorEmail')]));
        $output = $feed->render('rss');
        $this->assertContains(<<<'EOF'
      <author>
        <name><![CDATA[John Doe]]></name>
        <email>[email protected]</email>
      </author>
EOF
, $output);
    }