function DisplayVariantTest::testLabel

Tests the label() method.

@legacy-covers ::label

File

core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php, line 44

Class

DisplayVariantTest
Tests Drupal\Core\Display\VariantBase.

Namespace

Drupal\Tests\Core\Display

Code

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

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