Neos\Fusion\Tests\Unit\Core\Cache\ContentCacheTest::createCacheSegmentWithValidEntryIdentifierValueCreatesIdentifier PHP Метод

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

    public function createCacheSegmentWithValidEntryIdentifierValueCreatesIdentifier($entryIdentifierValues)
    {
        $contentCache = new ContentCache();
        $mockSecurityContext = $this->createMock(Context::class);
        $this->inject($contentCache, 'securityContext', $mockSecurityContext);
        $segement = $contentCache->createCacheSegment('My content', '/foo/bar', $entryIdentifierValues);
        $this->assertNotEmpty($segement);
    }