function DisplayVariantTest::testLabelDefault

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
  2. 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
  3. 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
  4. 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()

Tests the label() method using a default value.

File

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

Class

DisplayVariantTest
Tests Drupal\Core\Display\VariantBase.

Namespace

Drupal\Tests\Core\Display

Code

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

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