Beispiel #1
0
 /**
  * Set up before test
  *
  * @throws Exception
  */
 public function setUp()
 {
     $this->appMock = $this->getMock(\Magelight\App::class, [], [], '', false);
     \Magelight\App::forgeMock($this->appMock);
     $this->configLoaderMock = $this->getMock(\Magelight\Components\Loaders\Config::class, ['getConfig', 'loadConfig', 'getModulesConfigFilePath'], [], '', false);
     \Magelight\Components\Loaders\Config::forgeMock($this->configLoaderMock);
     $this->modulesMock = $this->getMock(\Magelight\Components\Modules::class, [], [], '', false);
     \Magelight\Components\Modules::forgeMock($this->modulesMock);
     $this->cacheAdapterPoolMock = $this->getMock(\Magelight\Cache\AdapterPool::class, [], [], '', false);
     \Magelight\Cache\AdapterPool::forgeMock($this->cacheAdapterPoolMock);
     $this->cacheAdapterMock = $this->getMockForAbstractClass(\Magelight\Cache\AdapterAbstract::class, [], '', false, false, true, []);
     $this->cacheAdapterPoolMock->expects($this->any())->method('getAdapter')->will($this->returnValue($this->cacheAdapterMock));
     $this->config = \Magelight\Config::forge();
 }