You are here

public function ProfileTest::testDescription in Linkit 8.5

Test the profile description.

@covers ::getDescription @covers ::setDescription

File

tests/src/Kernel/Entity/ProfileTest.php, line 25

Class

ProfileTest
Tests the Profile entity.

Namespace

Drupal\Tests\linkit\Kernel\Entity

Code

public function testDescription() {
  $profile = $this
    ->createProfile([
    'description' => 'foo',
  ]);
  $this
    ->assertEquals('foo', $profile
    ->getDescription());
  $profile
    ->setDescription('bar');
  $this
    ->assertEquals('bar', $profile
    ->getDescription());
}