You are here

public function CacheTest::mergeTagsProvider in Drupal 8

Same name and namespace in other branches
  1. 9 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 64

Class

CacheTest
@coversDefaultClass \Drupal\Core\Cache\Cache @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

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