You are here

public function ExtraFieldManagerBaseTest::testMatchEntityBundleKey in Extra Field 8.2

@covers ::matchEntityBundleKey

@dataProvider matchEntityBundleKeyProvider

Parameters

array $pluginBundles: Array of entity-bundle pairs the plugin can be used for.

string $entityBundleKey: The entity-bundle string of a content entity to check.

bool $match: The match result.

File

tests/src/Unit/ExtraFieldManagerBaseTest.php, line 49

Class

ExtraFieldManagerBaseTest
@coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldManagerBase

Namespace

Drupal\Tests\extra_field\Unit

Code

public function testMatchEntityBundleKey(array $pluginBundles, $entityBundleKey, $match) {
  $result = self::callMethod($this->baseManager, 'matchEntityBundleKey', [
    $pluginBundles,
    $entityBundleKey,
  ]);
  $this
    ->assertEquals($result, $match);
}