You are here

public function SummaryEntityTest::testName in Facets 8

Tests for getName.

@covers ::getName

File

modules/facets_summary/tests/src/Kernel/SummaryEntityTest.php, line 42

Class

SummaryEntityTest
Class SummaryEntityTest.

Namespace

Drupal\Tests\facets_summary\Kernel

Code

public function testName() {
  $entity = new FacetsSummary([
    'description' => 'Owls',
    'name' => 'owl',
  ], 'facets_summary');
  $this
    ->assertEquals('owl', $entity
    ->getName());
}