PHP Class Eko\FeedBundle\Tests\Formatter\AtomFormatterTest

This is the Atom formatter test class
Author: Vincent Composieux ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen 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.
testAuthorEmptyException ( ) Check if exception is an \InvalidArgumentException is thrown when 'author' config parameter is not set or empty.
testNonExistantCustomItemFieldWithRoutedItemInterface ( ) Check if an exception is thrown when trying to render a non-existant method with RoutedItemInterface.
testRenderCorrectRootNodes ( ) Check if Atom formatter output item.
testRenderItem ( ) Check if Atom formatter output item.
testRenderValidXML ( ) Check if Atom formatter output a valid XML.
testTranslatableValue ( ) Check if values are well translated with "translatable" option.

Private Methods

Method Description
getMockRouter ( ) : PHPUnit_Framework_MockObject_MockObject Returns RouterInterface mock.

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.

testAuthorEmptyException() public method

Check if exception is an \InvalidArgumentException is thrown when 'author' config parameter is not set or empty.

testNonExistantCustomItemFieldWithRoutedItemInterface() public method

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

testRenderCorrectRootNodes() public method

Check if Atom formatter output item.

testRenderItem() public method

Check if Atom formatter output item.
public testRenderItem ( )

testRenderValidXML() public method

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

testTranslatableValue() public method

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

Property Details

$manager protected_oe property

A feed manager instance
protected $manager