function UpdateScriptTest::providerMissingExtension

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdateScriptTest::providerMissingExtension()
  2. 8.9.x core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdateScriptTest::providerMissingExtension()
  3. 11.x core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php \Drupal\Tests\system\Functional\UpdateSystem\UpdateScriptTest::providerMissingExtension()

Data provider for ::testMissingExtension().

Return value

array[] Set of test cases to pass to the test method.

File

core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php, line 559

Class

UpdateScriptTest
Tests the update script access and functionality.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

public static function providerMissingExtension() : array {
  return [
    'core only' => [
      'core' => [
        'module' => [
          'aggregator',
        ],
        'theme' => [
          'seven',
        ],
      ],
      'contrib' => [
        'module' => [],
        'theme' => [],
      ],
    ],
    'contrib only' => [
      'core' => [
        'module' => [],
        'theme' => [],
      ],
      'contrib' => [
        'module' => [
          'module',
        ],
        'theme' => [
          'theme',
        ],
      ],
    ],
    'core and contrib' => [
      'core' => [
        'module' => [
          'aggregator',
          'rdf',
        ],
        'theme' => [
          'seven',
        ],
      ],
      'contrib' => [
        'module' => [
          'module_a',
          'module_b',
        ],
        'theme' => [
          'theme_a',
          'theme_b',
        ],
      ],
    ],
  ];
}

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