PHP Class Eko\FeedBundle\Tests\Formatter\RSSFormatterTest

This is the RSS formatter test class
Author: Vincent Composieux ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: eko/feedbundle

Protected Properties

Property Type Description
$manager A feed manager instance

Public Methods

Method Description
setUp ( ) Sets up elements used in test case.
testAddCustomChannelField ( ) Check if a custom channel field is properly rendered.
testAddCustomGroupChannelFieldWithAttributes ( ) Check if a custom group channel field is properly rendered with attributes.
testAddCustomGroupChannelFieldWithItemInterface ( ) Check if a custom group channel field is properly rendered with GroupFieldInterface.
testAddCustomGroupItemFieldWithAttributes ( ) Check if a custom group item field with attributes is properly rendered.
testAddCustomGroupItemFieldWithAttributesFromMethod ( ) Check if a custom group item field with attributes from method is properly rendered.
testAddCustomGroupItemFieldWithItemInterface ( ) Check if a custom group item field is properly rendered with ItemInterface.
testAddCustomGroupMediaItemsFieldsWithItemInterface ( ) Check if a custom group media items field is properly rendered with ItemInterface.
testAddCustomGroupMultipleItemFieldWithItemInterface ( ) Check if a custom group item field with multiple item fields is properly rendered with ItemInterface.
testAddCustomItemFieldWithItemInterface ( ) Check if a custom item field is properly rendered with ItemInterface.
testAddCustomItemFieldWithOneAttributeOnly ( ) Check if a custom item field with one attribute only is properly rendered with ItemInterface.
testAddCustomItemFieldWithRoutedItemInterface ( ) Check if a custom item field is properly rendered with RoutedItemInterface.
testAddCustomMediaItemFieldWithItemInterface ( ) Check if a custom media item field is properly rendered with ItemInterface.
testAnchorIsAppendedToLinkWithRoutedItemInterface ( ) Check if anchors are really appended to generated url of RouterItemInterface.
testNonExistantCustomItemFieldWithRoutedItemInterface ( ) Check if an exception is thrown when trying to render a non-existant method with RoutedItemInterface.
testRenderCorrectRootNodes ( ) Check if RSS formatter output item.
testRenderItem ( ) Check if RSS formatter output item.
testRenderValidXML ( ) Check if RSS formatter output a valid XML.
testTranslatableValue ( ) Check if values are well translated with "translatable" option.

Method Details

setUp() public method

Sets up elements used in test case.
public setUp ( )

testAddCustomChannelField() public method

Check if a custom channel field is properly rendered.

testAddCustomGroupChannelFieldWithAttributes() public method

Check if a custom group channel field is properly rendered with attributes.

testAddCustomGroupChannelFieldWithItemInterface() public method

Check if a custom group channel field is properly rendered with GroupFieldInterface.

testAddCustomGroupItemFieldWithAttributes() public method

Check if a custom group item field with attributes is properly rendered.

testAddCustomGroupItemFieldWithAttributesFromMethod() public method

Check if a custom group item field with attributes from method is properly rendered.

testAddCustomGroupItemFieldWithItemInterface() public method

Check if a custom group item field is properly rendered with ItemInterface.

testAddCustomGroupMediaItemsFieldsWithItemInterface() public method

Check if a custom group media items field is properly rendered with ItemInterface.

testAddCustomGroupMultipleItemFieldWithItemInterface() public method

Check if a custom group item field with multiple item fields is properly rendered with ItemInterface.

testAddCustomItemFieldWithItemInterface() public method

Check if a custom item field is properly rendered with ItemInterface.

testAddCustomItemFieldWithOneAttributeOnly() public method

Check if a custom item field with one attribute only is properly rendered with ItemInterface.

testAddCustomItemFieldWithRoutedItemInterface() public method

Check if a custom item field is properly rendered with RoutedItemInterface.

testAddCustomMediaItemFieldWithItemInterface() public method

Check if a custom media item field is properly rendered with ItemInterface.

testAnchorIsAppendedToLinkWithRoutedItemInterface() public method

Check if anchors are really appended to generated url of RouterItemInterface.

testNonExistantCustomItemFieldWithRoutedItemInterface() public method

Check if an exception is thrown when trying to render a non-existant method with RoutedItemInterface.

testRenderCorrectRootNodes() public method

Check if RSS formatter output item.

testRenderItem() public method

Check if RSS formatter output item.
public testRenderItem ( )

testRenderValidXML() public method

Check if RSS formatter output a valid XML.
public testRenderValidXML ( )

testTranslatableValue() public method

Check if values are well translated with "translatable" option.

Property Details

$manager protected property

A feed manager instance
protected $manager