public function ExtraFieldDisplayManagerTest::testFieldInfo in Extra Field 8
@covers ::fieldInfo
@dataProvider fieldInfoProvider
Parameters
array $definitions: Plugin definitions as returned by ::getDefinitions.
array $bundles: Entity bundles as returned by ::allEntityBundles.
array $results: Field info as returned by ::fieldInfo.
File
- tests/
src/ Kernel/ ExtraFieldDisplayManagerTest.php, line 91
Class
- ExtraFieldDisplayManagerTest
- @coversDefaultClass \Drupal\extra_field\Plugin\ExtraFieldDisplayManager
Namespace
Drupal\Tests\extra_field\KernelCode
public function testFieldInfo(array $definitions, array $bundles, array $results) {
$this
->prepareDefinitions($definitions);
$this
->prepareEntityBundles($bundles);
$this
->assertSame(count($this->displayManager
->getDefinitions()), count($definitions));
$this
->assertSame($this->displayManager
->fieldInfo(), $results);
}