Esempio n. 1
0
 /**
  * @return array
  */
 private function getAckedQueueSize()
 {
     $count = $this->queueItemRepo->getAckedQueueSize();
     $kpiType = self::INFO;
     if ($count > $this->options->getQueueSize()) {
         $kpiType = self::DANGER;
     }
     return [self::ACKED_QUEUE_SIZE => [self::VALUE => $count, self::TYPE => $kpiType]];
 }
Esempio n. 2
0
 /**
  * @covers DmMailer\Repository\QueueItem
  */
 public function testGetAckedQueueSize()
 {
     $actualResult = $this->sut->getAckedQueueSize();
     $this->assertEquals(8, $actualResult);
 }