Example #1
0
 public function testCacheDisable()
 {
     $valueMap = [['Magento\\Backend\\Console\\Command\\CacheDisableCommand', $this->getMock('Magento\\Backend\\Console\\Command\\CacheDisableCommand', [], [], '', false)]];
     $this->objectManager->expects($this->any())->method('get')->will($this->returnValueMap($valueMap));
     $this->assertInstanceOf('Magento\\Setup\\Model\\Cron\\JobSetCache', $this->jobFactory->create('setup:cache:disable', []));
 }
 public function testModuleEnable()
 {
     $valueMap = [['Magento\\Framework\\Module\\PackageInfoFactory', $this->getMock('Magento\\Framework\\Module\\PackageInfoFactory', [], [], '', false)]];
     $this->objectManager->expects($this->any())->method('get')->will($this->returnValueMap($valueMap));
     $this->assertInstanceOf('Magento\\Setup\\Model\\Cron\\AbstractJob', $this->jobFactory->create('setup:module:enable', []));
 }