You are here

public function PathautoTest::testForceEnable in Entity Share 8.2

Test pathauto plugin.

In the second case, pathauto state is forced to enabled.

File

modules/entity_share_client/tests/src/Functional/PathautoTest.php, line 98

Class

PathautoTest
General functional test class for path field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

public function testForceEnable() {
  $this
    ->pathautoTestSetup(EntitySharePathautoEnhancer::FORCE_ENABLE_PATHAUTO);
  $this
    ->assetEntityPath('es_test_path_auto', '/client/automatic', 'As the pathauto state is forced to be on, the client website has generated an alias based on its own pathauto pattern.');
  $this
    ->assetEntityPath('es_test_path_manual', '/client/manual', 'As the pathauto state is forced to be on, the client website has generated an alias based on its own pathauto pattern.');
}