/** * Creates test cache instance. * @return Cache cache instance. */ protected function createCache() { return Yii::createObject(['class' => Cache::className(), 'db' => $this->getConnection(), 'cacheCollection' => static::$cacheCollection, 'gcProbability' => 0]); }