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\KernelCode
public function testName() {
$entity = new FacetsSummary([
'description' => 'Owls',
'name' => 'owl',
], 'facets_summary');
$this
->assertEquals('owl', $entity
->getName());
}