
| Current Path : /var/www/html/rocksensor/web/core/modules/node/tests/src/Functional/Rest/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/modules/node/tests/src/Functional/Rest/NodeJsonBasicAuthTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\node\Functional\Rest;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
/**
* @group rest
*/
class NodeJsonBasicAuthTest extends NodeResourceTestBase {
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';
/**
* {@inheritdoc}
*/
protected function setUpAuthorization($method) {
parent::setUpAuthorization($method);
$this->grantPermissionsToTestedRole(['view camelids revisions']);
}
/**
* {@inheritdoc}
*/
protected function getExpectedNormalizedEntity() {
$entity = parent::getExpectedNormalizedEntity();
$entity['revision_log'] = [];
return $entity;
}
}