class PathAliasJsonBasicAuthTest

Same name and namespace in other branches
  1. 11.x core/modules/path_alias/tests/src/Functional/Rest/PathAliasJsonBasicAuthTest.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasJsonBasicAuthTest
  2. 10 core/modules/path_alias/tests/src/Functional/Rest/PathAliasJsonBasicAuthTest.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasJsonBasicAuthTest
  3. 8.9.x core/modules/path_alias/tests/src/Functional/Rest/PathAliasJsonBasicAuthTest.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasJsonBasicAuthTest

Test path_alias entities for JSON requests via basic auth.

@group path_alias

Hierarchy

Expanded class hierarchy of PathAliasJsonBasicAuthTest

File

core/modules/path_alias/tests/src/Functional/Rest/PathAliasJsonBasicAuthTest.php, line 12

Namespace

Drupal\Tests\path_alias\Functional\Rest
View source
class PathAliasJsonBasicAuthTest extends PathAliasResourceTestBase {
  use BasicAuthResourceTestTrait;
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'basic_auth',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * {@inheritdoc}
   */
  protected static $format = 'json';
  
  /**
   * {@inheritdoc}
   */
  protected static $mimeType = 'application/json';
  
  /**
   * {@inheritdoc}
   */
  protected static $auth = 'basic_auth';

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.