public function DisplayVariantTest::testLabelDefault in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
- 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
Tests the label() method using a default value.
@covers ::label
File
- core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 47
Class
- DisplayVariantTest
- @coversDefaultClass \Drupal\Core\Display\VariantBase @group Display
Namespace
Drupal\Tests\Core\DisplayCode
public function testLabelDefault() {
$display_variant = $this
->setUpDisplayVariant();
$this
->assertSame('', $display_variant
->label());
}