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 |
|---|---|---|---|
| EntityResolverTest::setUp | function | core/ |
|
| EntityResolverTest::testUuidEntityResolver | function | core/ |
Test that fields referencing UUIDs can be denormalized. |
| EntityResourcePermissionsUpdateTest | class | core/ |
Tests that existing sites continue to use permissions for EntityResource. |
| EntityResourcePermissionsUpdateTest.php | file | core/ |
|
| EntityResourcePermissionsUpdateTest::$modules | property | core/ |
Modules to enable after the database is loaded. |
| EntityResourcePermissionsUpdateTest::setDatabaseDumpFiles | function | core/ |
Set database dump files to be used. |
| EntityResourcePermissionsUpdateTest::testBcEntityResourcePermissionSettingAdded | function | core/ |
Tests rest_update_8203(). |
| EntityResourceRestTestCoverageTest | class | core/ |
Checks that all core content/config entity types have REST test coverage. |
| EntityResourceRestTestCoverageTest.php | file | core/ |
|
| EntityResourceRestTestCoverageTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
| EntityResourceRestTestCoverageTest::$definitions | property | core/ |
Entity definitions array. |
| EntityResourceRestTestCoverageTest::getLlamaMessage | function | core/ |
Message from Llama. |
| EntityResourceRestTestCoverageTest::setUp | function | core/ |
|
| EntityResourceRestTestCoverageTest::testEntityTypeRestTestCoverage | function | core/ |
Tests that all core content/config entity types have REST test coverage. |
| EntityResourceTest | class | core/ |
@coversDefaultClass \Drupal\jsonapi\Controller\EntityResource[[api-linebreak]] @group jsonapi |
| EntityResourceTest.php | file | core/ |
|
| EntityResourceTest::$entityResource | property | core/ |
The EntityResource under test. |
| EntityResourceTest::$modules | property | core/ |
Modules to enable. |
| EntityResourceTest::$node | property | core/ |
The node. |
| EntityResourceTest::$node2 | property | core/ |
The other node. |
| EntityResourceTest::$node3 | property | core/ |
An unpublished node. |
| 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/ |
Even though there is the generic EntityResource, it's necessary for every entity type to have its own test, because they each have different fields, validation constraints, et cetera. It's not because the generic case works, that every case… |
| 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. Some entities specify a 'label_callback', but not a 'label' entity key. For example: User. |
| 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/ |
The fields that need a different (random) value for each new entity created by a POST request. |
| EntityResourceTestBase::assert406Response | function | core/ |
Asserts a 406 response… or in some cases a 403 response, because weirdness. |
| 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. |
Pagination
- Previous page
- Page 220
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.