PHP Class Eko\FeedBundle\Tests\Service\FeedDumpServiceTest

Author: Vincent Composieux ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: eko/feedbundle

Protected Properties

Property Type Description
$entityManager Doctrine\ORM\EntityManagerInterface
$feedManager Eko\FeedBundle\Feed\FeedManager
$filesystem Symfony\Component\Filesystem\Filesystem
$service Eko\FeedBundle\Service\FeedDumpService

Public Methods

Method Description
setUp ( ) Sets up a dump service.
testDumpWithAnEntity ( ) Tests the dump() method with an entity.
testDumpWithInvalidOrder ( ) Tests the dump() method with an invalid order Should throw a \InvalidArgumentException.
testDumpWithoutItemsOrEntity ( ) Tests the dump() method without any items or entity set.

Method Details

setUp() public method

Sets up a dump service.
public setUp ( )

testDumpWithAnEntity() public method

Tests the dump() method with an entity.

testDumpWithInvalidOrder() public method

Tests the dump() method with an invalid order Should throw a \InvalidArgumentException.

testDumpWithoutItemsOrEntity() public method

Tests the dump() method without any items or entity set.

Property Details

$entityManager protected property

protected EntityManagerInterface,Doctrine\ORM $entityManager
return Doctrine\ORM\EntityManagerInterface

$feedManager protected property

protected FeedManager,Eko\FeedBundle\Feed $feedManager
return Eko\FeedBundle\Feed\FeedManager

$filesystem protected property

protected Filesystem,Symfony\Component\Filesystem $filesystem
return Symfony\Component\Filesystem\Filesystem

$service protected property

protected FeedDumpService,Eko\FeedBundle\Service $service
return Eko\FeedBundle\Service\FeedDumpService