예제 #1
0
 public function testCacheId()
 {
     $grid = new Datagrid();
     $sessionId = $grid->getSession()->getManager()->getId();
     $this->assertEquals(md5($sessionId . '_defaultGrid'), $this->grid->getCacheId());
     $this->grid->setCacheId('myCacheId');
     $this->assertEquals('myCacheId', $this->grid->getCacheId());
 }