Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $session = new Session(new MockArraySessionStorage());
     $request = new Request();
     $request->setSession($session);
     $this->requestStack = new RequestStack();
     $this->requestStack->push($request);
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->dispatcher = $this->getMock("Symfony\\Component\\EventDispatcher\\EventDispatcherInterface");
 }
Ejemplo n.º 4
0
 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]);
 }
Ejemplo n.º 5
0
 public function setUp()
 {
     parent::setUp();
     $this->controller = $this->getController();
     $this->controller->setContainer($this->container);
 }