/** * A test proxy method for _getParameter */ public function getParameter($configKey, $propertyName, $defaultValue = null) { return parent::_getParameter($configKey, $propertyName, $defaultValue); }
/** * Get the model instance * * @return Model The model instance. */ protected function _getModel() { $modelName = $this->_seeder->getModelName(); $model = ClassRegistry::init($modelName); return $model; }
/** * Set/get the field formatters * * {@inheritDoc} */ public function fieldFormatters() { parent::fieldFormatters(); $faker = $this->faker; return $this->_mergeFieldFormatters(array('name' => function ($state) use($faker) { return $faker->unique()->name; })); }