function DisplayVariantTest::testGetWeightDefault
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetWeightDefault()
- 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetWeightDefault()
- 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetWeightDefault()
Tests the getWeight() method using a default value.
@covers ::getWeight
File
-
core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 69
Class
- DisplayVariantTest
- @coversDefaultClass \Drupal\Core\Display\VariantBase @group Display
Namespace
Drupal\Tests\Core\DisplayCode
public function testGetWeightDefault() : void {
$display_variant = $this->setUpDisplayVariant();
$this->assertSame(0, $display_variant->getWeight());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.