示例#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);
 }
示例#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);
 }
示例#3
0
 public function setUp()
 {
     parent::setUp();
     $this->dispatcher = $this->getMock("Symfony\\Component\\EventDispatcher\\EventDispatcherInterface");
 }
示例#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]);
 }
示例#5
0
 public function setUp()
 {
     parent::setUp();
     $this->controller = $this->getController();
     $this->controller->setContainer($this->container);
 }