FluidTYPO3\Flux\Tests\Unit\Provider\AbstractProviderTest::getConfigurationProviderInstance PHP Method

getConfigurationProviderInstance() protected method

protected getConfigurationProviderInstance ( ) : ProviderInterface
return ProviderInterface
    protected function getConfigurationProviderInstance()
    {
        $potentialClassName = str_replace('Tests\\Unit\\', '', substr(get_class($this), 0, -4));
        /** @var ProviderInterface $instance */
        if (TRUE === class_exists($potentialClassName)) {
            $instance = $this->objectManager->get($potentialClassName);
        } else {
            $instance = $this->objectManager->get($this->configurationProviderClassName);
        }
        return $instance;
    }