Neos\Flow\Tests\Unit\Cache\CacheFactoryTest::createInjectsAnInstanceOfTheSpecifiedBackendIntoTheCacheFrontend PHP Method

createInjectsAnInstanceOfTheSpecifiedBackendIntoTheCacheFrontend() public method

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