Ejemplo n.º 1
0
 public function setupObjects()
 {
     parent::setupObjects();
     $this->addMockSubscriber($this->getTestFilePath('Check'));
     $this->check = $this->entity->getCheck(self::CHECK_ID);
     $this->addMockSubscriber($this->getTestFilePath('Metrics'));
     $this->metrics = $this->check->getMetrics();
     $this->metric = $this->metrics->first();
 }
 public function setupObjects()
 {
     parent::setupObjects();
     $this->addMockSubscriber($this->getTestFilePath('Alarm'));
     $this->alarm = $this->entity->getAlarm(self::ALARM_ID);
 }
Ejemplo n.º 3
0
 public function setupObjects()
 {
     parent::setupObjects();
     $this->resource = $this->service->resource('AgentTarget', null, $this->entity);
 }
Ejemplo n.º 4
0
 public function setupObjects()
 {
     parent::setupObjects();
     $this->resource = $this->entity->getAlarm();
 }