Example #1
0
 /**
  * Test that write cache calls through to cache library correctly.
  *
  * @covers ::writeCache
  */
 public function testWriteCache()
 {
     $this->cacheBackend->expects($this->exactly(2))->method('get')->will($this->returnValue(NULL));
     $this->cacheBackend->expects($this->exactly(2))->method('set')->with($this->logicalOr('module_implements', 'hook_info'));
     $this->moduleHandler->getImplementations('hook');
     $this->moduleHandler->writeCache();
 }