You are here

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

@covers ::getName

File

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

Class

PreferredFeatureTest
PreferredFeature test.

Namespace

Drupal\Tests\social_branding\Unit

Code

public function testPreferredFeatureNameIsString() : void {
  $preferred_feature = new PreferredFeature('feature1', 1);
  $this
    ->assertEquals('feature1', $preferred_feature
    ->getName());
  $this
    ->assertIsString($preferred_feature
    ->getName());
}