knowledge-8.x-1.x-dev/tests/src/Functional/Rest/KnowledgeTypeXmlBasicAuthTest.php
tests/src/Functional/Rest/KnowledgeTypeXmlBasicAuthTest.php
<?php
namespace Drupal\Tests\knowledge\Functional\Rest;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
use Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait;
/**
* Test XML response with basic authentication.
*
* @group rest
*/
class KnowledgeTypeXmlBasicAuthTest extends KnowledgeTypeResourceTestBase {
use BasicAuthResourceTestTrait;
use XmlEntityNormalizationQuirksTrait;
/**
* {@inheritdoc}
*/
protected static $modules = ['basic_auth'];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected static $format = 'xml';
/**
* {@inheritdoc}
*/
protected static $mimeType = 'text/xml; charset=UTF-8';
/**
* {@inheritdoc}
*/
protected static $auth = 'basic_auth';
}
