/** * @covers DmMailer\Repository\Message */ public function testGetAllMessagesCount() { $actualResult = $this->sut->getAllMessagesCount(); $this->assertEquals(7, $actualResult); }
/** * @return array */ private function getAllMessagesCount() { $count = $this->messageRepo->getAllMessagesCount(); $kpiType = self::INFO; return [self::ALL_MESSAGE_COUNT => [self::VALUE => $count, self::TYPE => $kpiType]]; }