public function setUp() { parent::setUp(); $this->dispatcher = $this->getMock("Symfony\\Component\\EventDispatcher\\EventDispatcherInterface"); $session = new Session(new MockArraySessionStorage()); $this->request = new Request(); $this->request->setSession($session); }
public function setUp() { parent::setUp(); $session = new Session(new MockArraySessionStorage()); $request = new Request(); $request->setSession($session); $this->requestStack = new RequestStack(); $this->requestStack->push($request); }
public function setUp() { parent::setUp(); $this->dispatcher = $this->getMock("Symfony\\Component\\EventDispatcher\\EventDispatcherInterface"); }
public function setUp() { parent::setUp(); $this->handler = $this->getMock("Thelia\\ImportExport\\Export\\ExportHandler", ["getHandledTypes", "buildDataSet"], [$this->container]); $this->handler->expects($this->any())->method("getHandledTypes")->willReturn([FormatType::TABLE, FormatType::UNBOUNDED]); }
public function setUp() { parent::setUp(); $this->controller = $this->getController(); $this->controller->setContainer($this->container); }