public function testDeleteBasketInvalidAction()
{
$this->setExpectedException('Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException');
$basketManager = $this->getMock('Sonata\\Component\\Basket\\BasketManagerInterface');
$basketManager->expects($this->once())->method('findOneBy')->will($this->returnValue(null));
$basketManager->expects($this->never())->method('delete');
$this->createBasketController($basketManager)->deleteBasketAction(1);
}