You are here

public function PathautoTest::testExposeCurrentState in Entity Share 8.2

Test pathauto plugin.

In the first case current pathauto state is exposed.

File

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

Class

PathautoTest
General functional test class for path field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

public function testExposeCurrentState() {
  $this
    ->pathautoTestSetup(EntitySharePathautoEnhancer::EXPOSE_CURRENT_PATHAUTO);
  $this
    ->assetEntityPath('es_test_path_auto', '/client/automatic', 'As the pathauto state is preserved, the client website has generated an alias based on its own pathauto pattern.');
  $this
    ->assetEntityPath('es_test_path_manual', '/manual_path', 'As the pathauto state is preserved, the client website has not generated an alias and has used the one provided by the server website.');
}