You are here

public function DisplayVariantTest::testGetWeightDefault in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 72
Contains \Drupal\Tests\Core\Display\DisplayVariantTest.

Class

DisplayVariantTest
@coversDefaultClass \Drupal\Core\Display\VariantBase @group Display

Namespace

Drupal\Tests\Core\Display

Code

public function testGetWeightDefault() {
  $display_variant = $this
    ->setUpDisplayVariant();
  $this
    ->assertSame(0, $display_variant
    ->getWeight());
}