You are here

public function ExtensionListTest::testCheckIncompatibility in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testCheckIncompatibility()

@covers ::checkIncompatibility

@dataProvider providerCheckIncompatibility

File

core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php, line 213

Class

ExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testCheckIncompatibility($additional_settings, $expected) {
  $test_extension_list = $this
    ->setupTestExtensionList([
    'test_name',
  ], $additional_settings);
  $this
    ->assertSame($expected, $test_extension_list
    ->checkIncompatibility('test_name'));
}