knowledge-8.x-1.x-dev/tests/src/Functional/Rest/KnowledgeTypeJsonBasicAuthTest.php
tests/src/Functional/Rest/KnowledgeTypeJsonBasicAuthTest.php
<?php
namespace Drupal\Tests\knowledge\Functional\Rest;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
/**
* Tests basic authentication with a JSON response.
*
* @group rest
*/
class KnowledgeTypeJsonBasicAuthTest extends KnowledgeTypeResourceTestBase {
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';
}
