EntityTestBundleHalJsonBasicAuthTest.php in Drupal 9
File
core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestBundleHalJsonBasicAuthTest.php
View source
<?php
namespace Drupal\Tests\entity_test\Functional\Hal;
use Drupal\Tests\entity_test\Functional\Rest\EntityTestBundleResourceTestBase;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
class EntityTestBundleHalJsonBasicAuthTest extends EntityTestBundleResourceTestBase {
use BasicAuthResourceTestTrait;
protected static $modules = [
'hal',
'basic_auth',
];
protected $defaultTheme = 'stark';
protected static $auth = 'basic_auth';
protected static $format = 'hal_json';
protected static $mimeType = 'application/hal+json';
}