function ModuleInstallerTest::containerRebuildRequiredProvider

Data provider for ::testContainerRebuildRequired().

File

core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php, line 199

Class

ModuleInstallerTest
Tests the ModuleInstaller class.

Namespace

Drupal\KernelTests\Core\Extension

Code

public static function containerRebuildRequiredProvider() : array {
  return [
    [
      [
        'container_rebuild_required_true',
      ],
      1,
    ],
    [
      [
        'container_rebuild_required_false',
      ],
      1,
    ],
    [
      [
        'container_rebuild_required_false',
        'container_rebuild_required_false_2',
      ],
      1,
    ],
    [
      [
        'container_rebuild_required_false',
        'container_rebuild_required_false_2',
        'container_rebuild_required_true',
      ],
      2,
    ],
    [
      [
        'container_rebuild_required_false',
        'container_rebuild_required_false_2',
        'container_rebuild_required_true',
        'container_rebuild_required_true_2',
      ],
      3,
    ],
    [
      [
        'container_rebuild_required_true',
        'container_rebuild_required_false',
        'container_rebuild_required_false_2',
      ],
      2,
    ],
    [
      [
        'container_rebuild_required_false',
        'container_rebuild_required_true',
        'container_rebuild_required_false_2',
      ],
      3,
    ],
    [
      [
        'container_rebuild_required_false',
        'container_rebuild_required_true',
        'container_rebuild_required_false_2',
        'container_rebuild_required_true_2',
      ],
      4,
    ],
    [
      [
        'container_rebuild_required_true',
        'container_rebuild_required_false',
        'container_rebuild_required_true_2',
        'container_rebuild_required_false_2',
      ],
      4,
    ],
    [
      [
        'container_rebuild_required_false_2',
        'container_rebuild_required_dependency_false',
      ],
      3,
    ],
    [
      [
        'container_rebuild_required_false_2',
        'container_rebuild_required_dependency_false',
        'container_rebuild_required_true',
      ],
      3,
    ],
  ];
}

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