public function DisplayVariantTest::testGetConfiguration in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetConfiguration()
Tests the getConfiguration() method.
@covers ::getConfiguration
@dataProvider providerTestGetConfiguration
File
- core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 79
Class
- DisplayVariantTest
- @coversDefaultClass \Drupal\Core\Display\VariantBase @group Display
Namespace
Drupal\Tests\Core\DisplayCode
public function testGetConfiguration($configuration, $expected) {
$display_variant = $this
->setUpDisplayVariant($configuration);
$this
->assertSame($expected, $display_variant
->getConfiguration());
}