You are here

public function DisplayVariantTest::testLabel in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabel()

Tests the label() method.

@covers ::label

File

core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php, line 42
Contains \Drupal\Tests\Core\Display\DisplayVariantTest.

Class

DisplayVariantTest
@coversDefaultClass \Drupal\Core\Display\VariantBase @group Display

Namespace

Drupal\Tests\Core\Display

Code

public function testLabel() {
  $display_variant = $this
    ->setUpDisplayVariant(array(
    'label' => 'foo',
  ));
  $this
    ->assertSame('foo', $display_variant
    ->label());
}