Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $application = new Console();
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
 }
 public function setUp()
 {
     parent::setUp();
     $this->handler = $this->createHandler();
     $this->tracker = new Tracker();
     $this->handler->init($this->tracker);
 }
 public function setUp()
 {
     parent::setUp();
     Fixture::createSuperUser();
     $manager = $this->createQueueManager();
     $this->manager = $manager['queue'];
     $this->lock = $manager['lock'];
 }
 public function setUp()
 {
     parent::setUp();
     $this->redis = $this->createRedisBackend();
     $this->lock = new Queue\Lock($this->redis);
     $this->queue = new Queue\Manager($this->redis, $this->lock);
     $this->queue->setNumberOfAvailableQueues(1);
     $this->queue->setNumberOfRequestsToProcessAtSameTime(3);
     $this->processor = $this->createProcessor();
 }
 public function setUp()
 {
     parent::setUp();
     $this->redis = $this->createRedisBackend();
     if (!$this->hasDependencies()) {
         $this->redis->delete($this->emptyListKey);
         $this->redis->delete($this->listKey);
         $this->redis->delete($this->key);
         $this->redis->appendValuesToList($this->listKey, array(10, 299, '34'));
     }
 }
 public function setUp()
 {
     parent::setUp();
     Fixture::createWebsite('2014-01-01 00:00:00');
     Fixture::createSuperUser();
     Tracker\Cache::deleteTrackerCache();
     $this->backend = $this->createRedisBackend();
     $this->queue = Queue\Factory::makeQueueManager($this->backend);
     $this->response = new Response();
     $this->handler = new Handler();
     $this->handler->setResponse($this->response);
     $this->tracker = new Tracker();
     $this->requestSet = new RequestSet();
 }
 public function setUp()
 {
     parent::setUp();
     $this->clearRedisDb();
     $this->settings = self::$fixture->piwikEnvironment->getContainer()->get('Piwik\\Plugins\\QueuedTracking\\Settings');
 }
 public function setUp()
 {
     parent::setUp();
     $this->systemCheck = new SystemCheck();
 }
 public function setUp()
 {
     parent::setUp();
     $this->settings = new Settings();
 }
Exemplo n.º 10
0
 public function setUp()
 {
     parent::setUp();
     $this->queue = $this->createQueue($id = '');
 }
Exemplo n.º 11
0
 public function setUp()
 {
     parent::setUp();
     $redis = $this->createRedisBackend();
     $this->lock = $this->createLock($redis);
 }
 public function setUp()
 {
     parent::setUp();
     $this->plugin = new QueuedTracking();
     Factory::getSettings()->queueEnabled->setValue(true);
 }