You are here

public function ConfigListerTest::listConfigProvider in Configuration Update Manager 8

Data provider for self:testListConfig().

File

tests/src/Unit/ConfigListerTest.php, line 87

Class

ConfigListerTest
Tests the \Drupal\config_update\ConfigListerWithProviders class.

Namespace

Drupal\Tests\config_update\Unit

Code

public function listConfigProvider() {
  return [
    // Arguments are $list_type, $name, and return value is that list of
    // configuration in active, extension, and optional storage.
    [
      'type',
      'system.all',
      [
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.three',
          'foo.barbaz.four',
          'foo.barbaz.five',
          'foo.barbaz.six',
          'something.else',
          'another.one',
        ],
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.seven',
          'foo.barbaz.four',
          'foo.barnot.three',
          'something.else',
        ],
        [
          'foo.barbaz.four',
        ],
      ],
    ],
    [
      'type',
      'system.simple',
      [
        [
          'something.else',
          'another.one',
        ],
        [
          'foo.barnot.three',
          'something.else',
        ],
        [],
      ],
    ],
    [
      'type',
      'foo',
      [
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.three',
        ],
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.seven',
        ],
        [],
      ],
    ],
    [
      'type',
      'unknown.type',
      [
        [],
        [],
        [],
      ],
    ],
    [
      'profile',
      'dummy',
      [
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.three',
          'foo.barbaz.four',
          'foo.barbaz.five',
          'foo.barbaz.six',
          'something.else',
          'another.one',
        ],
        [
          'baz.bar.one',
        ],
        [
          'baz.bar.two',
        ],
      ],
    ],
    [
      'module',
      'foo_module',
      [
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.three',
          'foo.barbaz.four',
          'foo.barbaz.five',
          'foo.barbaz.six',
          'something.else',
          'another.one',
        ],
        [
          'foo.barbaz.one',
          'baz.bar.one',
        ],
        [
          'foo.barbaz.two',
        ],
      ],
    ],
    [
      'theme',
      'foo_theme',
      [
        [
          'foo.bar.one',
          'foo.bar.two',
          'foo.bar.three',
          'foo.barbaz.four',
          'foo.barbaz.five',
          'foo.barbaz.six',
          'something.else',
          'another.one',
        ],
        [
          'foo.bar.one',
        ],
        [
          'foo.bar.two',
        ],
      ],
    ],
  ];
}