/** * @param <type> $query * @depends testQueryCache_DependsOnHints */ public function testQueryCache_DependsOnMaxResults($query) { $cache = $query->getQueryCacheDriver(); $cacheCount = count($cache->getIds()); $query->setMaxResults(10); $query->getResult(); $this->assertEquals($cacheCount + 1, count($cache->getIds())); }
/** * @param <type> $query * @depends testQueryCache_DependsOnHints */ public function testQueryCache_DependsOnMaxResults($query) { $cache = $query->getQueryCacheDriver(); $cacheCount = $this->getCacheSize($cache); $query->setMaxResults(10); $query->getResult(); $this->assertEquals($cacheCount + 1, $this->getCacheSize($cache)); }