public function testGetInvoiceAction() { $invoice = $this->getMock('Sonata\\Component\\Invoice\\InvoiceInterface'); $this->assertEquals($invoice, $this->createInvoiceController($invoice)->getInvoiceAction(1)); }