You are here

public function PathautoTest::testForceDisable in Entity Share 8.2

Test pathauto plugin.

In the third case, pathauto state is forced to disabled.

File

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

Class

PathautoTest
General functional test class for path field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

public function testForceDisable() {
  $this
    ->pathautoTestSetup(EntitySharePathautoEnhancer::FORCE_DISABLE_PATHAUTO);
  $this
    ->assetEntityPath('es_test_path_auto', '/server/automatic', 'As the pathauto state is forced to be off, the client website has not generated an alias and has used the one provided by the server (automatically created on the server website).');
  $this
    ->assetEntityPath('es_test_path_manual', '/manual_path', 'As the pathauto state is forced to be off, the client website has not generated an alias and has used the one provided by the server (manually created on the server website).');
}