Search for assert

  1. Search 7.x for assert
  2. Search 9.5.x for assert
  3. Search 10.3.x for assert
  4. Search 11.x for assert
  5. Other projects
Title Object type File name Summary
EntityContextDefinitionIsSatisfiedTest::assertRequirementIsSatisfied function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionIsSatisfiedTest.php Asserts that the requirement is satisfied as expected.
EntityCrudHookTest::assertHookMessageOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Checks the order of CRUD hook execution messages.
EntityDisplayTest::assertDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is a $type type dependency of $display config entity.
EntityDisplayTest::assertDependencyHelper function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Provides a helper for dependency assertions.
EntityDisplayTest::assertNoDependency function core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php Asserts that $key is not a $type type dependency of $display config entity.
EntityFieldDefaultValueTest::assertDefaultValues function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldDefaultValueTest.php Executes a test set for a defined entity type.
EntityFormDisplayAccessControlHandlerTest::assertAllowOperations function core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php Assert method to verify the access by operations.
EntityQueryAggregateTest::assertResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Asserts the results as expected regardless of order between and in rows.
EntityQueryAggregateTest::assertSortedResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php Asserts the results as expected regardless of order in rows.
EntityQueryRelationshipTest::assertResults function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php Assert the results.
EntityQueryTest::assertBundleOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
EntityQueryTest::assertResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
EntityQueryTest::assertRevisionResult function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
EntityReferenceAdminTest::assertFieldSelectOptions function core/modules/field/tests/src/FunctionalJavascript/EntityReference/EntityReferenceAdminTest.php Checks if a select element contains the specified options.
EntityReferenceAdminTest::assertFieldSelectOptions function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceAdminTest.php Checks if a select element contains the specified options.
EntityReferenceFieldItemNormalizerTest::assertDenormalize function core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php Asserts denormalization process is correct for give data.
EntityReferenceFieldTest::assertUserAutocreate function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Asserts that the setter callback performs autocreation for users.
EntityReferenceFieldTest::assertUserRoleAutocreate function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Asserts that the setter callback performs autocreation for user roles.
EntityReferenceFieldTranslatedReferenceViewTest::assertEntityReferenceDisplay function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php Assert entity reference display.
EntityReferenceFieldTranslatedReferenceViewTest::assertEntityReferenceFormDisplay function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php Assert entity reference form display.
EntityReferenceIntegrationTest::assertFieldValues function core/modules/field/tests/src/Functional/EntityReference/EntityReferenceIntegrationTest.php Asserts that the reference field values are correct.
EntityReferenceSelectionAccessTest::assertReferenceable function core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php Checks that a selection plugin returns the expected results.
EntityRepositoryTest::assertEntityType function core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Asserts that the entity has the expected entity type ID
EntityResourceTestBase::assert406Response function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts a 406 response… or in some cases a 403 response, because weirdness.
EntityResourceTestBase::assertNormalizationEdgeCases function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts normalization-specific edge cases.
EntityResourceTestBase::assertPatchProtectedFieldNamesStructure function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts structure of $patchProtectedFieldNames.
EntityResourceTestBase::assertResourceNotAvailable function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts that a resource is unavailable: 404, 406 if it has canonical route.
EntityResourceTestBase::assertStoredEntityMatchesSentNormalization function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Asserts that the stored entity matches the sent normalization.
EntityTestDateonlyTest::assertNormalizationEdgeCases function core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDateonlyTest.php Asserts normalization-specific edge cases.
EntityTestDateRangeTest::assertNormalizationEdgeCases function core/modules/datetime_range/tests/src/Functional/EntityResource/EntityTest/EntityTestDateRangeTest.php Asserts normalization-specific edge cases.
EntityTestDatetimeTest::assertNormalizationEdgeCases function core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php Asserts normalization-specific edge cases.
EntityTypeTest::assertNoPublicProperties function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php Asserts there on no public properties on the object instance.
EntityUrlTest::assertUrl function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Asserts that a given URL object matches the expectations.
EntityUUIDTest::assertCRUD function core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php Executes the UUID CRUD tests for the given entity type.
EntityViewsDataTest::assertBundleField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a bundle field.
EntityViewsDataTest::assertEntityReferenceField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a entity reference field.
EntityViewsDataTest::assertField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests generic stuff per field.
EntityViewsDataTest::assertLanguageField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a language field.
EntityViewsDataTest::assertLongTextField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a long text field.
EntityViewsDataTest::assertNumericField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a numeric field.
EntityViewsDataTest::assertStringField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a string field.
EntityViewsDataTest::assertUriField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a URI field.
EntityViewsDataTest::assertUuidField function core/modules/views/tests/src/Unit/EntityViewsDataTest.php Tests views data for a UUID field.
ErrorHandlerTest::assertErrorMessage function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Helper function: assert that the error message is found.
ErrorHandlerTest::assertNoErrorMessage function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Helper function: assert that the error message is not found.
ErrorHandlerTest::assertNoMessages function core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php Asserts that no messages are printed onto the page.
ExposedFormTest::assertIds function core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php Checks whether the specified ids are the ones displayed in the view output.
ExposedFormUITest::assertNoGroupedFilterErrors function core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php Asserts that there are no Grouped Filters errors.
FieldableEntityDefinitionUpdateTest::assertBackupTables function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts that the backup tables have been kept after a successful update.
FieldableEntityDefinitionUpdateTest::assertBundleFieldSchema function core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php Asserts that the bundle field schema is correct.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.