Same name and namespace in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideXmlCookieTest.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideXmlCookieTest
- 9 core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideXmlCookieTest.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideXmlCookieTest
@group rest
Hierarchy
- class \Drupal\Tests\rest\Functional\ResourceTestBase extends \Drupal\Tests\BrowserTestBase
- class \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
- class \Drupal\Tests\rest\Functional\EntityResource\ConfigEntityResourceTestBase
- class \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase
- class \Drupal\FunctionalTests\Rest\BaseFieldOverrideXmlCookieTest uses CookieResourceTestTrait, XmlEntityNormalizationQuirksTrait
- class \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase
- class \Drupal\Tests\rest\Functional\EntityResource\ConfigEntityResourceTestBase
- class \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
Expanded class hierarchy of BaseFieldOverrideXmlCookieTest
File
- core/
tests/ Drupal/ FunctionalTests/ Rest/ BaseFieldOverrideXmlCookieTest.php, line 13
Namespace
Drupal\FunctionalTests\RestView source
class BaseFieldOverrideXmlCookieTest extends BaseFieldOverrideResourceTestBase {
use CookieResourceTestTrait;
use XmlEntityNormalizationQuirksTrait;
/**
* {@inheritdoc}
*/
protected static $format = 'xml';
/**
* {@inheritdoc}
*/
protected static $mimeType = 'text/xml; charset=UTF-8';
/**
* {@inheritdoc}
*/
protected static $auth = 'cookie';
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseFieldOverrideResourceTestBase:: |
protected | property |
Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected static | property |
The tested entity type. Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected static | property |
Modules to install. Overrides EntityResourceTestBase:: |
2 |
BaseFieldOverrideResourceTestBase:: |
protected | function |
Creates the entity to be tested. Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected | function |
The expected cache contexts for the GET/HEAD response of the test entity. Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected | function |
Return the expected error message. Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected | function |
Returns the normalized POST entity. Overrides EntityResourceTestBase:: |
|
BaseFieldOverrideResourceTestBase:: |
protected | function |
Sets up the necessary authorization. Overrides ResourceTestBase:: |
|
BaseFieldOverrideXmlCookieTest:: |
protected static | property |
The authentication mechanism to use in this test. Overrides ResourceTestBase:: |
|
BaseFieldOverrideXmlCookieTest:: |
protected | property | ||
BaseFieldOverrideXmlCookieTest:: |
protected static | property |
The format to use in this test. Overrides ResourceTestBase:: |
|
BaseFieldOverrideXmlCookieTest:: |
protected static | property |
The MIME type that corresponds to $format. Overrides ResourceTestBase:: |
|
ConfigEntityResourceTestBase:: |
protected | function |
Overrides EntityResourceTestBase:: |
|
ConfigEntityResourceTestBase:: |
constant | A list of test methods to skip. | ||
CookieResourceTestTrait:: |
protected | property | The CSRF token. | |
CookieResourceTestTrait:: |
protected | property | The logout token. | |
CookieResourceTestTrait:: |
protected | property | The session cookie. | |
CookieResourceTestTrait:: |
protected | function | ||
CookieResourceTestTrait:: |
protected | function | ||
CookieResourceTestTrait:: |
protected | function | ||
CookieResourceTestTrait:: |
protected | function | ||
EntityResourceTestBase:: |
protected | property | Another entity of the same type used for testing. | |
EntityResourceTestBase:: |
protected | property | The entity storage. | |
EntityResourceTestBase:: |
protected static | property | The entity ID for the first created entity in testPost(). | 3 |
EntityResourceTestBase:: |
protected static | property | Optionally specify which field is the 'label' field. | 2 |
EntityResourceTestBase:: |
protected static | property | The fields that are protected against modification during PATCH requests. | 16 |
EntityResourceTestBase:: |
protected static | property | The entity ID for the second created entity in testPost(). | 3 |
EntityResourceTestBase:: |
protected static | property | A list of fields that need a unique value. | 1 |
EntityResourceTestBase:: |
protected | function | Asserts a 406 response… or in some cases a 403 response, because weirdness. | |
EntityResourceTestBase:: |
protected | function | Recursively asserts that the expected items are set in the tested entity. | |
EntityResourceTestBase:: |
protected | function |
Asserts normalization-specific edge cases. Overrides ResourceTestBase:: |
|
EntityResourceTestBase:: |
protected | function | Asserts structure of $patchProtectedFieldNames. | |
EntityResourceTestBase:: |
protected | function | Asserts that a resource is unavailable: 404, 406 if it has canonical route. | |
EntityResourceTestBase:: |
protected | function | Asserts that the stored entity matches the sent normalization. | |
EntityResourceTestBase:: |
protected static | function | Transforms a normalization: casts all non-string types to strings. | |
EntityResourceTestBase:: |
protected | function | Creates another entity to be tested. | 2 |
EntityResourceTestBase:: |
protected | function | Gets an entity resource's POST URL. | |
EntityResourceTestBase:: |
protected | function | Gets an entity resource's GET/PATCH/DELETE URL. | |
EntityResourceTestBase:: |
protected | function | The expected cache tags for the GET/HEAD response of the test entity. | 4 |
EntityResourceTestBase:: |
protected | function |
Returns the expected cacheability of an unauthorized access response. Overrides ResourceTestBase:: |
1 |
EntityResourceTestBase:: |
protected | function | The cacheability of unauthorized 'view' entity access. | 6 |
EntityResourceTestBase:: |
protected static | function | Clones the given entity and modifies all PATCH-protected fields. | |
EntityResourceTestBase:: |
protected | function | Gets the normalized POST entity with random values for its unique fields. | 1 |
EntityResourceTestBase:: |
protected | function | Returns the normalized PATCH entity. | 3 |
EntityResourceTestBase:: |
protected | function | Makes the given entity normalization invalid. | |
EntityResourceTestBase:: |
protected | function | Provides an entity resource. | |
EntityResourceTestBase:: |
public | function | Tests a DELETE request for an entity, plus edge cases to ensure good DX. | 1 |
EntityResourceTestBase:: |
public | function | Tests a GET request for an entity, plus edge cases to ensure good DX. | 4 |
ResourceTestBase:: |
protected | property | The account to use for authentication, if any. | |
ResourceTestBase:: |
protected static | property | The REST Resource Config entity ID under test (i.e. a resource type). | 4 |
ResourceTestBase:: |
protected | property | The REST resource config entity storage. | |
ResourceTestBase:: |
protected | property | The serializer service. | |
ResourceTestBase:: |
protected | function | Asserts that a resource error response has the given message. | |
ResourceTestBase:: |
protected | function | Asserts that a resource response has the given status code and body. | |
ResourceTestBase:: |
protected | function | Adds the Xdebug cookie to the request options. | |
ResourceTestBase:: |
protected | function | Grants permissions to the anonymous role. | |
ResourceTestBase:: |
protected | function | Grants permissions to the authenticated role. | |
ResourceTestBase:: |
protected | function | Grants permissions to the tested role: anonymous or authenticated. | |
ResourceTestBase:: |
protected | function | Provisions the REST resource under test. | |
ResourceTestBase:: |
protected static | function | Recursively sorts an array by key. | |
ResourceTestBase:: |
protected | function | Refreshes the state of the tester to be in sync with the testee. | |
ResourceTestBase:: |
protected | function | Performs a HTTP request. Wraps the Guzzle HTTP client. | 1 |
XmlEntityNormalizationQuirksTrait:: |
protected | function | Applies the XML config entity encoding quirks that remain after decoding. | |
XmlEntityNormalizationQuirksTrait:: |
protected | function | Applies the XML entity field encoding quirks that remain after decoding. | |
XmlEntityNormalizationQuirksTrait:: |
protected | function | ||
XmlEntityNormalizationQuirksTrait:: |
public | function | ||
XmlEntityNormalizationQuirksTrait:: |
public | function | ||
XmlNormalizationQuirksTrait:: |
protected | function | Applies the XML encoding quirks that remain after decoding. |