function CacheTest::mergeTagsProvider

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::mergeTagsProvider()
  2. 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::mergeTagsProvider()
  3. 10 core/tests/Drupal/Tests/Core/Cache/CacheTest.php \Drupal\Tests\Core\Cache\CacheTest::mergeTagsProvider()

Provides a list of pairs of cache tags arrays to be merged.

Return value

array

File

core/tests/Drupal/Tests/Core/Cache/CacheTest.php, line 53

Class

CacheTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Cache%21Cache.php/class/Cache/11.x" title="Helper methods for cache." class="local">\Drupal\Core\Cache\Cache</a> @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

public static function mergeTagsProvider() {
    return [
        [
            [],
            [],
            [],
        ],
        [
            [
                'bar',
                'foo',
            ],
            [
                'bar',
            ],
            [
                'foo',
            ],
        ],
        [
            [
                'foo',
                'bar',
            ],
            [
                'foo',
            ],
            [
                'bar',
            ],
        ],
        [
            [
                'foo',
                'bar',
            ],
            [
                'foo',
            ],
            [
                'bar',
                'foo',
            ],
        ],
        [
            [
                'foo',
                'bar',
            ],
            [
                'foo',
            ],
            [
                'foo',
                'bar',
            ],
        ],
        [
            [
                'bar',
                'foo',
            ],
            [
                'bar',
                'foo',
            ],
            [
                'foo',
                'bar',
            ],
        ],
        [
            [
                'foo',
                'bar',
            ],
            [
                'foo',
                'bar',
            ],
            [
                'foo',
                'bar',
            ],
        ],
        [
            [
                'bar',
                'foo',
                'llama',
            ],
            [
                'bar',
                'foo',
            ],
            [
                'foo',
                'bar',
            ],
            [
                'llama',
                'foo',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.