function DisplayVariantTest::testLabelDefault
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
- 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testLabelDefault()
- 11.x 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 <a href="/api/drupal/core%21lib%21Drupal%21Core%21Display%21VariantBase.php/class/VariantBase/9" title="Provides a base class for DisplayVariant plugins." class="local">\Drupal\Core\Display\VariantBase</a> @group Display
Namespace
Drupal\Tests\Core\DisplayCode
public function testLabelDefault() {
$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.