function DisplayVariantTest::testLabel
Tests the label() method.
@legacy-covers ::label
File
-
core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 44
Class
Namespace
Drupal\Tests\Core\DisplayCode
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.