You are here

public function BreakpointTest::testGetWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/breakpoint/tests/src/Unit/BreakpointTest.php \Drupal\Tests\breakpoint\Unit\BreakpointTest::testGetWeight()

@covers ::getWeight

File

core/modules/breakpoint/tests/src/Unit/BreakpointTest.php, line 79
Contains \Drupal\Tests\breakpoint\Unit\BreakpointTest.

Class

BreakpointTest
@coversDefaultClass \Drupal\breakpoint\Breakpoint @group Breakpoint

Namespace

Drupal\Tests\breakpoint\Unit

Code

public function testGetWeight() {
  $this->pluginDefinition['weight'] = '4';
  $this
    ->setupBreakpoint();

  // Assert that the type returned in an integer.
  $this
    ->assertSame(4, $this->breakpoint
    ->getWeight());
}