Neos\Flow\Tests\Unit\Cache\CacheFactoryTest::createReturnsInstanceOfTheSpecifiedCacheFrontend PHP Метод

createReturnsInstanceOfTheSpecifiedCacheFrontend() публичный Метод

    public function createReturnsInstanceOfTheSpecifiedCacheFrontend()
    {
        $factory = new CacheFactory(new ApplicationContext('Testing'), $this->mockEnvironment);
        $factory->injectEnvironmentConfiguration($this->mockEnvironmentConfiguration);
        $cache = $factory->create('TYPO3_Flow_Cache_FactoryTest_Cache', VariableFrontend::class, NullBackend::class);
        $this->assertInstanceOf(VariableFrontend::class, $cache);
    }