Bake\Shell\Task\TestTask::_addFixture PHP Method

_addFixture() protected method

Sets the app. or plugin.plugin_name. prefix.
protected _addFixture ( string $name ) : void
$name string Name of the Model class that a fixture might be required for.
return void
    protected function _addFixture($name)
    {
        if ($this->plugin) {
            $prefix = 'plugin.' . Inflector::underscore($this->plugin) . '.';
        } else {
            $prefix = 'app.';
        }
        $fixture = $prefix . $this->_fixtureName($name);
        $this->_fixtures[$name] = $fixture;
    }