public function testGetInvoiceInvoiceelementsAction()
{
$invoice = $this->getMock('Sonata\\Component\\Invoice\\InvoiceInterface');
$invoiceElements = $this->getMock('Sonata\\Component\\Invoice\\InvoiceElementsInterface');
$invoice->expects($this->once())->method('getInvoiceElements')->will($this->returnValue(array($invoiceElements)));
$this->assertEquals(array($invoiceElements), $this->createInvoiceController($invoice)->getInvoiceInvoiceelementsAction(1));
}