Sonata\Test\OrderBundle\Controller\Api\OrderControllerTest::testGetOrdersAction PHP Method

testGetOrdersAction() public method

public testGetOrdersAction ( )
    public function testGetOrdersAction()
    {
        $orderManager = $this->getMock('Sonata\\Component\\Order\\OrderManagerInterface');
        $orderManager->expects($this->once())->method('getPager')->will($this->returnValue(array()));
        $paramFetcher = $this->getMock('FOS\\RestBundle\\Request\\ParamFetcherInterface');
        $paramFetcher->expects($this->exactly(3))->method('get');
        $paramFetcher->expects($this->once())->method('all')->will($this->returnValue(array()));
        $this->assertEquals(array(), $this->createOrderController(null, $orderManager)->getOrdersAction($paramFetcher));
    }