コード例 #1
0
 public function testEvictCollectionRegions()
 {
     $ownerId = array('id' => 1);
     $className = State::CLASSNAME;
     $association = 'cities';
     $cacheEntry = array(array('id' => 11), array('id' => 12));
     $this->putCollectionCacheEntry($className, $association, $ownerId, $cacheEntry);
     $this->assertTrue($this->cache->containsCollection(State::CLASSNAME, $association, 1));
     $this->cache->evictCollectionRegions();
     $this->assertFalse($this->cache->containsCollection(State::CLASSNAME, $association, 1));
 }