You are here

public function DisplayVariantTest::testGetConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 84
Contains \Drupal\Tests\Core\Display\DisplayVariantTest.

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());
}