class ContactFormJsonBasicAuthTest

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

@group rest

Hierarchy

Expanded class hierarchy of ContactFormJsonBasicAuthTest

File

core/modules/contact/tests/src/Functional/Rest/ContactFormJsonBasicAuthTest.php, line 10

Namespace

Drupal\Tests\contact\Functional\Rest
View source
class ContactFormJsonBasicAuthTest extends ContactFormResourceTestBase {
  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.