Example #1
0
 public function testGetAdapter()
 {
     $cacheConfig = new \SimpleXMLElement('<default>
             <type>file</type>
             <config>
                 <path>var/cache</path>
             </config>
         </default>
     ');
     $this->configMock->expects($this->once())->method('getConfig')->with('global/cache/default')->will($this->returnValue($cacheConfig));
     $fileAdapterMock = $this->getMock(\Magelight\Cache\Adapter\File::class, [], [], '', false);
     \Magelight\Cache\Adapter\File::forgeMock($fileAdapterMock);
     $this->assertEquals($fileAdapterMock, $this->adapterPool->getAdapter());
 }