Search for test
Exact matches
| Title | Object type | File name | Summary |
|---|---|---|---|
| Test | class | core/ |
Provides test media source. |
| Test | class | core/ |
Defines a test controller for page titles. |
All search results
| Title | Object type | File name | Summary |
|---|---|---|---|
| EntityResourceTest::$nodeUuid | property | core/ |
Static UUIDs to use in testing. |
| EntityResourceTest::$request | property | core/ |
A fake request. |
| EntityResourceTest::$user | property | core/ |
The user. |
| EntityResourceTest::createEntityResource | function | core/ |
Creates an instance of the subject under test. |
| EntityResourceTest::setUp | function | core/ |
|
| EntityResourceTest::testGetEmptyCollection | function | core/ |
@covers ::getCollection[[api-linebreak]] |
| EntityResourceTest::testGetPagedCollection | function | core/ |
@covers ::getCollection[[api-linebreak]] |
| EntityResourceTestBase | class | core/ |
Defines a base class for testing all entity resources. |
| EntityResourceTestBase.php | file | core/ |
|
| EntityResourceTestBase::$anotherEntity | property | core/ |
Another entity of the same type used for testing. |
| EntityResourceTestBase::$entity | property | core/ |
The main entity used for testing. |
| EntityResourceTestBase::$entityStorage | property | core/ |
The entity storage. |
| EntityResourceTestBase::$entityTypeId | property | core/ |
The tested entity type. |
| EntityResourceTestBase::$firstCreatedEntityId | property | core/ |
The entity ID for the first created entity in testPost(). |
| EntityResourceTestBase::$labelFieldName | property | core/ |
Optionally specify which field is the 'label' field. |
| EntityResourceTestBase::$modules | property | core/ |
Modules to install. |
| EntityResourceTestBase::$patchProtectedFieldNames | property | core/ |
The fields that are protected against modification during PATCH requests. |
| EntityResourceTestBase::$secondCreatedEntityId | property | core/ |
The entity ID for the second created entity in testPost(). |
| EntityResourceTestBase::$uniqueFieldNames | property | core/ |
A list of fields that need a unique value. |
| EntityResourceTestBase::assert406Response | function | core/ |
Asserts a 406 response… or in some cases a 403 response, because weirdness. |
| EntityResourceTestBase::assertEntityArraySubset | function | core/ |
Recursively asserts that the expected items are set in the tested entity. |
| EntityResourceTestBase::assertNormalizationEdgeCases | function | core/ |
Asserts normalization-specific edge cases. |
| EntityResourceTestBase::assertPatchProtectedFieldNamesStructure | function | core/ |
Asserts structure of $patchProtectedFieldNames. |
| EntityResourceTestBase::assertResourceNotAvailable | function | core/ |
Asserts that a resource is unavailable: 404, 406 if it has canonical route. |
| EntityResourceTestBase::assertStoredEntityMatchesSentNormalization | function | core/ |
Asserts that the stored entity matches the sent normalization. |
| EntityResourceTestBase::castToString | function | core/ |
Transforms a normalization: casts all non-string types to strings. |
| EntityResourceTestBase::createAnotherEntity | function | core/ |
Creates another entity to be tested. |
| EntityResourceTestBase::createEntity | function | core/ |
Creates the entity to be tested. |
| EntityResourceTestBase::getEntityResourcePostUrl | function | core/ |
Gets an entity resource's POST URL. |
| EntityResourceTestBase::getEntityResourceUrl | function | core/ |
Gets an entity resource's GET/PATCH/DELETE URL. |
| EntityResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
| EntityResourceTestBase::getExpectedCacheTags | function | core/ |
The expected cache tags for the GET/HEAD response of the test entity. |
| EntityResourceTestBase::getExpectedNormalizedEntity | function | core/ |
Returns the expected normalization of the entity. |
| EntityResourceTestBase::getExpectedUnauthorizedAccessCacheability | function | core/ |
Returns the expected cacheability of an unauthorized access response. |
| EntityResourceTestBase::getExpectedUnauthorizedAccessMessage | function | core/ |
Return the expected error message. |
| EntityResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability | function | core/ |
The cacheability of unauthorized 'view' entity access. |
| EntityResourceTestBase::getModifiedEntityForPatchTesting | function | core/ |
Clones the given entity and modifies all PATCH-protected fields. |
| EntityResourceTestBase::getModifiedEntityForPostTesting | function | core/ |
Gets the normalized POST entity with random values for its unique fields. |
| EntityResourceTestBase::getNormalizedPatchEntity | function | core/ |
Returns the normalized PATCH entity. |
| EntityResourceTestBase::getNormalizedPostEntity | function | core/ |
Returns the normalized POST entity. |
| EntityResourceTestBase::makeNormalizationInvalid | function | core/ |
Makes the given entity normalization invalid. |
| EntityResourceTestBase::provisionEntityResource | function | core/ |
Provides an entity resource. |
| EntityResourceTestBase::setUp | function | core/ |
|
| EntityResourceTestBase::testDelete | function | core/ |
Tests a DELETE request for an entity, plus edge cases to ensure good DX. |
| EntityResourceTestBase::testGet | function | core/ |
Tests a GET request for an entity, plus edge cases to ensure good DX. |
| EntityResourceTestBase::testPatch | function | core/ |
Tests a PATCH request for an entity, plus edge cases to ensure good DX. |
| EntityResourceTestBase::testPost | function | core/ |
Tests a POST request for an entity, plus edge cases to ensure good DX. |
| EntityResourceValidationTraitTest | class | core/ |
@group rest @coversDefaultClass \Drupal\rest\Plugin\rest\resource\EntityResourceValidationTrait[[api-linebreak]] |
| EntityResourceValidationTraitTest.php | file | core/ |
|
| EntityResourceValidationTraitTest::testFailedValidate | function | core/ |
@covers ::validate[[api-linebreak]] |
Pagination
- Previous page
- Page 230
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.