public function DisplayVariantTest::testGetWeight in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetWeight()
- 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testGetWeight()
Tests the getWeight() method.
@covers ::getWeight
File
- core/
tests/ Drupal/ Tests/ Core/ Display/ DisplayVariantTest.php, line 57
Class
- DisplayVariantTest
- @coversDefaultClass \Drupal\Core\Display\VariantBase @group Display
Namespace
Drupal\Tests\Core\DisplayCode
public function testGetWeight() {
$display_variant = $this
->setUpDisplayVariant([
'weight' => 5,
]);
$this
->assertSame(5, $display_variant
->getWeight());
}