You are here

public function PreferredFeatureTest::testPreferredFeatureWeightIsInteger in Open Social 10.3.x

@covers ::getWeight

File

modules/social_features/social_branding/tests/src/Unit/PreferredFeatureTest.php, line 29

Class

PreferredFeatureTest
PreferredFeature test.

Namespace

Drupal\Tests\social_branding\Unit

Code

public function testPreferredFeatureWeightIsInteger() : void {
  $preferred_feature = new PreferredFeature('feature1', 0);
  $this
    ->assertEquals(0, $preferred_feature
    ->getWeight());
  $this
    ->assertIsInt($preferred_feature
    ->getWeight());
}