public function setUp()
 {
     parent::setUp();
     $this->campaignService = new CampaignService(Bootstrap::getServiceManager());
     $this->request = new Request();
     $this->request->setMethod("POST");
 }
Beispiel #2
0
 public function setUp()
 {
     parent::setUp();
     $this->loginAdapter = new LoginAdapter(Bootstrap::getServiceManager());
     $this->request = new Request();
     $this->request->setMethod("POST");
 }
 /**
  * @dataProvider provideServiceList
  */
 public function testService($service)
 {
     $sm = Bootstrap::getServiceManager();
     // test if service is available in SM
     $this->assertTrue($sm->has($service));
     // test if correct instance is created
     //$this->assertInstanceOf($service, $sm->get($service));
 }
 public function setUp()
 {
     parent::setUp();
     $this->customerService = new CustomerService(Bootstrap::getServiceManager());
     $this->customerService->setAccountId(self::ACCOUNT_ID);
     $this->customerService->setEntity(self::ENTITY);
     $this->request = new Request();
     $this->request->setMethod("POST");
 }
 protected function setUp()
 {
     $this->service = $this->getMockBuilder('OpsWay\\TocatBudget\\Service\\MyService')->disableOriginalConstructor()->getMock();
     $serviceManager = Bootstrap::getServiceManager();
     $this->controller = new MyController($this->service);
     $this->request = new Request();
     $this->routeMatch = new RouteMatch(array('controller' => 'other'));
     $this->event = new MvcEvent();
     $config = $serviceManager->get('Config');
     $routerConfig = isset($config['router']) ? $config['router'] : array();
     $router = HttpRouter::factory($routerConfig);
     $this->event->setRouter($router);
     $this->event->setRouteMatch($this->routeMatch);
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($serviceManager);
 }
 protected function setUp()
 {
     $this->locator = Bootstrap::getServiceManager();
     $this->repository = $this->locator->get(MyRepository::class);
 }
 public function setUp()
 {
     parent::setUp();
     $this->customerSettingService = new CustomerSettingsService(Bootstrap::getServiceManager());
 }
 public function setUp()
 {
     parent::setUp();
     $this->transactionService = new TransactionService(Bootstrap::getServiceManager());
 }