public function FacetTest::testUrlAlias in Facets 8
Tests url alias.
@covers ::getUrlAlias @covers ::setUrlAlias
File
- tests/
src/ Kernel/ Entity/ FacetTest.php, line 236
Class
- FacetTest
- Class FacetTest.
Namespace
Drupal\Tests\facets\Kernel\EntityCode
public function testUrlAlias() {
$entity = new Facet([], 'facets_facet');
$this
->assertNull($entity
->getUrlAlias());
$entity
->setUrlAlias('owl');
$this
->assertEquals('owl', $entity
->getUrlAlias());
$entity = new Facet([
'url_alias' => 'llama',
], 'facets_facet');
$this
->assertEquals('llama', $entity
->getUrlAlias());
}