Ejemplo n.º 1
0
 /**
  * Test case when cron is enabled in config
  *
  * @return \Magento\NewRelicReporting\Model\Cron
  */
 public function testRunCronCronEnabledFromConfig()
 {
     $this->configMock->expects($this->once())->method('isCronEnabled')->willReturn(true);
     $this->reportModulesInfoMock->expects($this->once())->method('report')->willReturnSelf();
     $this->reportCountsMock->expects($this->once())->method('report')->willReturnSelf();
     $this->reportNewRelicCronMock->expects($this->once())->method('report')->willReturnSelf();
     $this->assertSame($this->model, $this->model->runCron());
 }