Ejemplo n.º 1
0
 /**
  * @return void
  */
 public function testGetCacheKeyByName()
 {
     $nameInLayout = 'testBlock';
     $this->block->setNameInLayout($nameInLayout);
     $cacheKey = sha1($nameInLayout);
     $this->assertEquals(AbstractBlock::CACHE_KEY_PREFIX . $cacheKey, $this->block->getCacheKey());
 }