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