function DisplayVariantTest::testGetConfiguration

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetConfiguration()
  2. 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetConfiguration()
  3. 11.x 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\Display

Code

public function testGetConfiguration($configuration, $expected) {
    $display_variant = $this->setUpDisplayVariant($configuration);
    $this->assertSame($expected, $display_variant->getConfiguration());
}

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