Sonata\Test\BasketBundle\Controller\Api\BasketControllerTest::testGetBasketsAction PHP Method

testGetBasketsAction() public method

    public function testGetBasketsAction()
    {
        $basketManager = $this->getMock('Sonata\\Component\\Basket\\BasketManagerInterface');
        $basketManager->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->createBasketController($basketManager)->getBasketsAction($paramFetcher));
    }